-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move functions from bot.py
to cogs.utils
#94
Comments
I'd like to work on this. Assign me this issue |
Thank you! |
just a small query, do you want all the non init functions under the same file within same class or should I keep them as separate files? |
I would put the database updates under schema.py (or a separate file if easier for you), report under either errors or a new file (up to you), and the getchannel and similar functions together in a new separate file. |
okay, I added the codes into the files as per your requirements. can you tell me about the function references part that i'm supposed to change now, since the functions have been moved to different locations. |
Hey! Function references in this context would for example mean updating bot.getchannel calls in messages.py to wherever you have placed the getchannel. The gist of it is just make sure that the program still functions. |
Move non
__init__
functions from bot.py to utils.This also means updating the function references inside all cogs.
The text was updated successfully, but these errors were encountered: