Discord Bot with Python 3.6 Tutorial (Chat)

Опубликовано: 23 Март 2026
на канале: San Diego Machine Learning
40,029
466

**Please replace pickle with json any time you see it in the code and also change the rb and wb to r and w respectively. With pickles you are able to execute arbitrary code when you are unpickling so it is unwise to allow your users to be directly putting that into a pickle. A json object is much better to use in this scenario. **

If you want to join the discord channel to get help troubleshooting use this link

  / discord  

In this video we show how to make a new app on the

https://discordapp.com/developers/doc... website

and grab the client ID and make the app bot user. Then we authorize using

https://discordapp.com/oauth2/authori...

by putting in our client ID and then selecting which server we want to give it permission to. Then we pip install discord.py and we go over how to read and send messages back and then do some basics and show you the possibilites.