Changed all categories to enums

- Accidentally fixed capitalisation of help command categories

Fixes #383
This commit is contained in:
0x5c
2021-03-28 02:38:36 -04:00
parent c569fdb422
commit f6d69f7498
17 changed files with 74 additions and 63 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class StudyCog(commands.Cog):
self.source = "Data courtesy of [HamStudy.org](https://hamstudy.org/)"
self.session = aiohttp.ClientSession(connector=bot.qrm.connector)
@commands.command(name="hamstudy", aliases=["rq", "randomquestion", "randomq"], category=cmn.cat.study)
@commands.command(name="hamstudy", aliases=["rq", "randomquestion", "randomq"], category=cmn.Cats.STUDY)
async def _random_question(self, ctx: commands.Context, country: str = "", level: str = "", element: str = ""):
"""Gets a random question from [HamStudy's](https://hamstudy.org) question pools."""
with ctx.typing():