Back to Browse

Creating Cogs and Commands - Python Discord Bot

11.1K views
Mar 11, 2021
19:28

How to add cog modules and more commands to a Python Discord Bot ❤ Subscribe: http://bit.ly/SubscribeDPT In this tutorial, I will be showing you how to create cogs in a Discord bot to make maintainable and scalable code and I will also show you how to make more advanced commands that take multiple or unlimited parameters. The commands I will be showing you how to make in this video are a dice rolling command and a command to pick a random choice from a list of options. 👨‍💻 Source Code https://github.com/DenverCoder1/Tutorial-Discord-Bot/tree/part-3-cogs-and-commands 💬 Dev Pro Tips Discussion & Support Server https://discord.gg/fPrdqh3Zfu 📜 Discord.py (dpy is no longer maintained, see Nextcord below) Documentation - https://discordpy.readthedocs.io/en/latest/index.html Discord.py Server - https://discord.gg/r3sSKJJ 📜 Nextcord Documentation - https://nextcord.readthedocs.io/en/latest Nextcord Server - https://discord.gg/ZebatWssCB 📓 Python Discord Bot Template https://github.com/DenverCoder1/discord-bot-template 📺 In this video: 0:00​ - Introduction 0:15 - Creating a Cog 3:06 - Adding Commands to a Cog 4:00 - Loading Cogs 6:30 - Adding a "Random" Cog 7:29 - Dice Roll Command 14:34 - Random Choice Command 18:35 - Conclusion In future videos in this series, I will show you how you can: * Implement a fancy Help Command * Make a bot to welcome users * Interact with other APIs to make useful bot features * Much more Make sure to subscribe so you don't miss anything! 🐍 More Discord Bot Tutorials https://youtube.com/playlist?list=PL9YUC9AZJGFG6larkQJYio_f0V-O1NRjy 💻 More tutorials https://www.youtube.com/playlist?list=PL9YUC9AZJGFHTUP3vzq4UfQ76ScBnOi-9 🙋‍♂️ Find me on other channels Discord 🗨️ https://bit.ly/dpt-discord Twitter ✍ https://twitter.com/DenverCoder1 Github 👨‍💻 https://github.com/DenverCoder1 Sponsor 💞 https://github.com/sponsors/DenverCoder1 Buy me a coffee ☕ https://ko-fi.com/jlawrence 💖 SPONSORS 💖 Get your username or a link to your channel here by sponsoring on GitHub ▶ https://github.com/sponsors/DenverCoder1​ 🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS ► https://bit.ly/jlawrencepromos

Download

0 formats

No download links available.

Creating Cogs and Commands - Python Discord Bot | NatokHD