spark-c / SparksieBOT

A Discord bot that provides upkeep, utility, and some fun commands for my personal discord server.
1 stars 0 forks source link

Implement Argparser (esp. for Listkeeper) #7

Closed spark-c closed 3 years ago

spark-c commented 3 years ago

With the addition of Listkeeper, some of the functions of which take several args / flags, it would be helpful to implement a proper argparser. Some of the functions have relatively busy top sections which are purely deciding whether there are args/flags passed and handling them accordingly; not elegant.

spark-c commented 3 years ago

Implemented (using argparse library) for Listkeeper cog in cmdparser.py. Easily extensible for other (less necessary) commands such as !cat in Functions cog.