Cogs in
HarshVardhan19 (11)

What are cogs?

Do you ever get frustrated trying to find the code for a command in the file which already has more than 700 lines of code?
Well, Cogs are the exact things you need! Literally speaking, putting all the commands and events in the single file and making it messy with more than 500 lines, is not the best coding practice.

Instead, you can create different files, with different codes and commands, and then load them to the bot!
Neat? huh?
I already wrote a basic cogs tutorial in a Repl project with all those information using comments inside the file and the cogs files itself.

The basic order to go through the project, in my opinion, would be:
1. Go through the file first.
2. Then the file.
3. And lastly, making use of them in the file!

Go check it out!
Upvote the post, if you liked it, and also if I was able to reduce some headaches by helping you learn how to reduce the clutter in the file. Feel free to leave a comment down below!
Also thank you for reading this far!

You are viewing a single comment. View All
AstOwOlfo (245)

well, u could probs just explain it in a tutorial. as far as im aware, this is a standard feature of most discord bots so you could probs get a lot of clout off making it @HarshVardhan19