Make a Discord Bot in Python

Published: 15 February 2018
on channel: DevDungeon
98,367
1k

Making a Discord Bot with Python 3 - https://www.devdungeon.com/content/ma...

Important note: The discord.py version used here is 0.16.12. The version of Python used is 3.6. Python 3.7 introduced backwards incompatible changes with async. The new version of discord.py 1.0 is also incompatible with this code here. Make sure you follow the instructions closely and ensure you have the proper versions. discord.py==0.16.12, python below 3.7.

Learn how to create a simple Discord bot using Python 3. This will walk through how to create a Discord server, create a bot account, and then write the Python code to power the bot.

Frequently asked questions:
Where do I run "python -m pip install discord.py" - You run it in your system command prompt or terminal
Syntax Error - The code works up through Python 3.6. In Python 3.7 async became a reserved keyword. Change `asyncio.async` to `async` in the code.
I get Discord library errors when trying to run. Make sure you have the correct version of discord.py installed. Run `pip list` to see what version you have. Make sure you have 0.16.12 and not 1.0. `pip uninstall discord.py` and `pip uninstall discord` to ensure you have removed all versions, then `pip install discord.py==0.16.12`.



Links:

https://discord.gg
https://discordapp.com/developers/
https://discordapp.com/developers/app...
https://discordapp.com/oauth2/authori...
https://www.devdungeon.com/content/ai...
https://www.devdungeon.com/content/ch...
https://github.com/DevDungeon/ChattyC...
https://github.com/Rapptz/discord.py
http://discordpy.readthedocs.io/en/la...


On this page of the site you can watch the video online Make a Discord Bot in Python with a duration of hours minute second in good quality, which was uploaded by the user DevDungeon 15 February 2018, share the link with friends and acquaintances, this video has already been watched 98,367 times on youtube and it was liked by 1 thousand viewers. Enjoy your viewing!