Earlier, we created a Python Discord bot using discord.py library, and the bot API. Now, we move on to Cogs, setup a nicer structure for our code, and have a talk on measuring test coverage. No real changes to how the bot works this time, we concentrate on nice form and some tips.
If you like content like this, feel free to click the like and subscribe buttons. Also, share the link for anyone who might be interested. And if you have some tips to share, or learned something new today, please leave a comment below the video about it.
Code can be found from here: https://github.com/crystoll/discord_bot
You can make a clone of it, study it, play with it. Note that code is ahead of this video since when I make new ones, I push them on top of old ones. Read the README file for instructions on how you can check out the code for a specific session. If you just want to see the final result - so far - no need to go back in time, the final commit is always the best available at the time.
Here are the links in the video:
https://docs.python.org/3/tutorial/mo...
https://discordpy.readthedocs.io/
https://coverage.readthedocs.io/
Note: I created a short video to show how you can use git commands to find the code for each episode: • Discord Bot Series bonus episode: How...