aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-07-02 20:55:06 +0100
committerGravatar Gareth Coles <[email protected]>2018-07-02 20:55:06 +0100
commit6305f20b7e088886869d0422883f60af96eb4e2a (patch)
treec8f3a45e8cd149121c956e1c9a2d72739a4e0287
parentMerge branch 'add-off-topic-name-rotation' into 'master' (diff)
[OTName] Dammit volcyy
-rw-r--r--bot/cogs/off_topic_names.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py
index 3b07a227d..ff6513f98 100644
--- a/bot/cogs/off_topic_names.py
+++ b/bot/cogs/off_topic_names.py
@@ -81,12 +81,12 @@ class OffTopicNames:
coro = update_names(self.bot, self.headers)
self.updater_task = await self.bot.loop.create_task(coro)
- @group(name='otname')
+ @group(invoke_without_command=True, name='otname', hidden=True)
async def otname_group(self, ctx: Context):
"""Contains subcommands to manage the off-topic category names."""
- @with_role(Roles.owner, Roles.owner, Roles.moderator)
@otname_group.command(name='add')
+ @with_role(Roles.owner, Roles.admin, Roles.moderator)
async def otname_add(self, ctx, name: OffTopicName):
"""Adds a new off-topic name to the rotation."""