discord_bot.py icon indicating copy to clipboard operation
discord_bot.py copied to clipboard

Many improvements and changes

Open Soheab opened this issue 2 years ago • 1 comments

I have significantly improved the codebase with main changes being the following:

  • Change ctx to interaction like how its supposed to be
  • Make everything more typing friendly
  • Fix weird indents overal
  • Syncing:
    • Syncs globally now
    • Renamed DISCORD_GUILD_ID config var to OWNER_GUILD_ID and is actually used on all commands in cogs/admin.py and when syncing
  • Support for setting a custom status
  • Combined reload, load, unload, reloadall into one command with choices called extensions
  • 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 amiadmin command to cogs/fun.py since 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

Soheab avatar Aug 30 '23 16:08 Soheab

Will review this when I get time, god damn this is a lot image

AlexFlipnote avatar Sep 01 '23 06:09 AlexFlipnote