Discord Wikipedia Bot (Slash Commands) | Pycord/Discord.py

Discord Wikipedia Bot (Slash Commands) | Pycord/Discord.py

Digiwind

2 года назад

2,145 Просмотров

In this video we code a Discord bot that gets articles from Wikipedia using the Wikipedia Python Library. If you have any questions or comments, feel free to comment below or join our Discord (discord.gg/M6eFU3HrUn). If you found this video helpful, consider subscribing, it'll help out the channel! This video uses Pycord, a maintained fork of Discord.py more info (and videos) about Pycord below!

Get started with Discord Slash Commands (Pycord): https://youtu.be/QPxsE59g4kc

More Discord Bot (uses Pycord, a maintained fork of Discord.py) Videos: https://youtube.com/playlist?list=PLCIQvOC0Sg6a-C4kIjbDX1SEjkme-n1Lh

Discord Developer Portal: https://discord.com/developers/applications
PyPI: https://pypi.org/project/wikipedia/1.4.0/
Wikipedia Library: https://wikipedia.readthedocs.io/en/latest/
Wikipedia Library's Documentation: https://wikipedia.readthedocs.io/en/latest/code.html#api

Pycord:
Pycord Documentation: https://docs.pycord.dev/en/master/
Pycord Discord: https://discord.gg/pycord
Pycord Github: https://github.com/Pycord-Development/pycord
Install Pycord: git clone https://github.com/Pycord-Development/pycord

My socials:
Discord Server: https://discord.com/invite/M6eFU3HrUn
Twitter (@Digiwind_YT): https://twitter.com/Digiwind_YT
Reddit (u/digiwind_yt): https://www.reddit.com/user/Digiwind_YT/
Github (Digiwind): https://github.com/Digiwind

Music used in this video:

- Hoogway - Old Friend
- Provided by Lofi Records
- Watch: https://youtu.be/9_wo4BUpr6E
- Download/Stream: https://fanlink.to/ThinLines

- Hoogway - Orange Sea
- Provided by Lofi Records
- Watch: https://youtu.be/67utNK0w3TQ
- Download/Stream: https://fanlink.to/ThinLines

- Hoogway - Thin Lines
- Provided by Lofi Records
- Watch: https://youtu.be/xPWM_Z-TdNM
- Download/Stream: https://fanlink.to/ThinLines

Code used in this video: https://github.com/Digiwind/Digiwind-Videos/blob/main/WikipediaBot

Chapters:
0:00-0:31 Intro and Demo
0:31-01:26 Creating and Inviting the Bot
01:26-01:48 Wikipedia Library Documentation
01:48-02:52 Coding the Bot
02:52-04:29 Code Explanation
04:29-05:15 Testing the Bot
05:15-05:32 Outro

#DiscordWikipediaBot #Digiwind #Pycord #Discordpy #DiscordSlashCommands #PythonDiscordBot

Тэги:

#digiwind #discord_bot #discord_bot_python #discord_bot_tutorial #discord_bot_tutorial_python #discord_py_slash_commands #discord_python #discord_python_bot #discord_python_tutorial #discord_slash_commands #discord_wikipedia_bot #discordpy #discordpy_rewrite #how_to_make_a_discord_bot #how_to_make_a_discord_bot_python #pycord #python_discord #python_discord_bot #python_discord_bot_2022 #slash_commands_discord #slash_commands_discord.py #wikipedia_bot_discord #wind576
Ссылки и html тэги не поддерживаются


Комментарии:

@skewty
@skewty - 11.04.2023 05:04

Great tutorials with obvious, super new to software development / python mistakes. For example: you git clone instead of pip install, you are calling sync code in async context; this is a big taboo. Also, always using global variables. Otherwise, thanks for great walkthrough!

Ответить
@milymilo
@milymilo - 22.08.2022 08:07

FINALLY A VIDEO THAT TELLS ME HOW TO HECKING ADD OPTIONS. THANK YOU!






yes i am aware there are much easier ways to find out how to implement options I just didn't know that they were called options until after this video and I am really hecking new to python and pycord.

Ответить
@Feodor88
@Feodor88 - 26.05.2022 14:58

how to fix the error
ImportError: cannot import name 'Option' from 'discord'

Ответить
@xlite2361
@xlite2361 - 07.03.2022 02:06

how do i fix the DisambiguationError and make it choose a random article out of the similar ones

Ответить
@Panqueko
@Panqueko - 19.02.2022 04:28

i love how you bring real good content, nothing generic, for exemple i didnt knew i need this but now i need thank you :D

Ответить
@LSG_everydaylife
@LSG_everydaylife - 10.01.2022 05:53

nice tutorial

Ответить