config: Actually populate role ids with real roles

This commit is contained in:
Ave Ozkal 2018-12-23 16:19:33 +03:00
parent 74f4c11f28
commit 7186746075
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 7 additions and 3 deletions

View file

@ -16,7 +16,7 @@ class AdminCog:
return any(r.id in config.staff_role_ids for r in ctx.author.roles) return any(r.id in config.staff_role_ids for r in ctx.author.roles)
def check_if_bot_manager(ctx): 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.check(check_if_staff)
@commands.command(aliases=['echo'], hidden=True) @commands.command(aliases=['echo'], hidden=True)

View file

@ -9,5 +9,9 @@ guild_whitelist = [
source_url = "https://github.com/aveao/robocop-ng" source_url = "https://github.com/aveao/robocop-ng"
bot_manager_role_id = 1 bot_manager_role_id = 526372554081042462 # Bot management role in NotSwitched
staff_role_ids = [1, 2] 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~