From 71867460756558f0e246aedba6275e08b80bc1ec Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 23 Dec 2018 16:19:33 +0300 Subject: [PATCH] config: Actually populate role ids with real roles --- cogs/admin.py | 2 +- config.py.template | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index 3a744aa..07800e9 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -16,7 +16,7 @@ class AdminCog: return any(r.id in config.staff_role_ids for r in ctx.author.roles) def check_if_bot_manager(ctx): - return any(r.id in config.bot_manager_role_id for r in ctx.author.roles) + return any(r.id == config.bot_manager_role_id for r in ctx.author.roles) @commands.check(check_if_staff) @commands.command(aliases=['echo'], hidden=True) diff --git a/config.py.template b/config.py.template index 17e4cac..9391688 100644 --- a/config.py.template +++ b/config.py.template @@ -9,5 +9,9 @@ guild_whitelist = [ source_url = "https://github.com/aveao/robocop-ng" -bot_manager_role_id = 1 -staff_role_ids = [1, 2] +bot_manager_role_id = 526372554081042462 # Bot management role in NotSwitched +staff_role_ids = [526384077679624192, # Team role in NotSwitched + 526372582455508992, # Mod role in NotSwitched + 526372554081042462, # Bot management role in NotSwitched + 526383985430102016, # Wizard role in NotSwitched + ] # syntaxing is hard~