csua-backend icon indicating copy to clipboard operation
csua-backend copied to clipboard

Refactor xkcd code to be more modular

Open royh02 opened this issue 3 years ago • 0 comments

The current xkcd code is not very modular, making other refactoring efforts hard. I suggest the following:

  • [ ] Move all async logic (including sending messages) to the main bot.py file and only have xkcd.py handle retrieving xkcd comic. This way, xkcd.py functions more like a util file, which it is.

  • [ ] Change the method of handling messages to handling args so that it's consistent with other commands. After finishing the task above, this part becomes easier.

  • [ ] Add a small description about what the command does using description and brief. Refer to other commands as examples. This should be quick and fun! 😄

royh02 avatar Jul 28 '21 06:07 royh02