Building a Discord Bot in Python (2024) Episode Four: Cogs
Вставка
- Опубліковано 27 тра 2024
- Hey guys, today we add cog files to our Discord boy project! Subscribe!
MY DISCORD: / discord
My WEBSITE: www.houseofcode.xyz/index.html
MY GITHUB: github.com/Paradoxial8172
DONATE: paypal.me/TamerBoi?country.x=...
Music Credits:
N/A
Intro is made by somebody else on panzoid, only changed the music Tranquillity - ProdRiddiman)
Outro is made by me :)
Outro Music is "In A Cabin By The Lake" by Lazarus Moment! - Наука та технологія
Love the videos. Your teaching/guiding style works well with how I learn and absorb. If you're open to any suggestions, I'd like to learn how to use libraries.
I also make graphics, feel free to reach out, I'd be glad to help out with your thumbnails and such - my only ask is that you keep teaching :D
Thanks for the video!
I see you are posting these a little more frequently. I'll be along for the ride. Trying to build a sick gambling discord bot
All thanks to my much needed break from college of course. I plan to try and upload at least once a week
@@paradoxial7665 thank you so much
thank u
6:13
For some reason i get 3 errors
error. 1
line 31, in
asyncio.run(main())
error. 2
line 28, in main
await load()
error. 3
line 22, in load
for filename in os.listdir("./cogs"):
^^^^^^^^^^^^^^^^^^^^
Please anyone help
Hello, thanks for the video, could you tell me what theme you are using please ?
Hi, sorry for the late replies. I use a lot of GitHub themes for visual studios code as it is easy on my eyes lol
Hello there, thank you for these tutorials, its really helped me learn to code and how to start up a bot with working commands. However i have trouble with a code i cannot seem to figure out. a word counter. heres an example
User: Bruh
User: Bruh
User: !bruhcount
Bot: @User has said "bruh" 2 times!
i know there are bots out there already that count words but i've had no luck getting access to their code
I believe if you initialize a channel object within Discord.py, I think there is a messages or contents attribute that is a list and you could iterate through to see how many times a person has sent __ in the channel.
umm why im getting a setup error ???
Join my discord server so we can help you out
If I were this dude, I'd make this video on episode 1. The series he's been making is giving out tutorial that can easily run into bunch of problems just to promote his OWN discord server lmfao
Hi, I appreciate the somewhat constructive criticism. However you should know the reason why this tutorial is placed as episode 4 is because of two reasons. Firstly, I’m trying to make this series somewhat for the most part in a similar order to my older one. Secondly, most people who are completely new to developing Discord bots with Python are not going to be worried about creating cogs for their commands. A person who’s completely new would be more than likely worried about making sure their commands actually work and can be used within Discord itself. When you work with cogs you are working with classes and furthermore, some basic OOP. A lot of my audience do not have much prior knowledge on programming in Python. So to not confuse anybody who is new, I want to post videos in an order that progressively gets harder as well as what’s demanded. And typically, when creating a Discord bot, functional commands and getting the bot online are what is going to be priority. Which is why those are part one and two. Furthermore, my Discord server is meant for those who need quick help with their code incase they do run into any issues. The “promotion” you speak of is really just letting my audience know that if they get stuck, I myself, as well as others are available.
Dawg Bro made a whole 3 paragraph essay about how you were wrong, oh and @paradoxial7665 Keep up the good work
Hey First comment here, your videos are actually nice but please if you could actively post videos like in 2-3days it would be nice