discord_bot.py
discord_bot.py copied to clipboard
Many improvements and changes
I have significantly improved the codebase with main changes being the following:
- Change
ctxtointeractionlike how its supposed to be - Make everything more typing friendly
- Fix weird indents overal
- Syncing:
- Syncs globally now
- Renamed
DISCORD_GUILD_IDconfig var toOWNER_GUILD_IDand is actually used on all commands incogs/admin.pyand when syncing
- Support for setting a custom status
- Combined
reload, load, unload, reloadallinto one command with choices calledextensions - Adding descriptions to all command arguments (I hope)
- All encryption commands now support passing a file via the UI, same for
/change avatar - Formatted all files using the black formatter with line-length set to
120 - Moved
amiadmincommand tocogs/fun.pysince that isn't supposed be owner-only - Fixed all checks to follow best practices
- Removed unused code/functions
- I probably forgot somethings
Nothing was tested
Will review this when I get time, god damn this is a lot