From f610a341bef18fca671ab2932679780e48e3a036 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 16 Oct 2017 14:06:46 -0400 Subject: [PATCH] Removed listed_ids --- src/main/cogs/tools.py | 2 +- src/main/misc/checks.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/cogs/tools.py b/src/main/cogs/tools.py index b67b5d9..4d8f125 100644 --- a/src/main/cogs/tools.py +++ b/src/main/cogs/tools.py @@ -82,7 +82,7 @@ class Utils: print('Service built.') @commands.command(aliases=['up', 'u', 'vid', 'v']) - @checks.is_listed() + @commands.has_permissions(administrator=True) async def upload(self, ctx): global youtube attachments = ctx.message.attachments diff --git a/src/main/misc/checks.py b/src/main/misc/checks.py index 3ffcd07..47c1c6b 100644 --- a/src/main/misc/checks.py +++ b/src/main/misc/checks.py @@ -11,7 +11,6 @@ from discord.ext.commands import errors as errext from utils import utils as u owner_id = u.config['owner_id'] -listed_ids = u.config['listed_ids'] def is_owner(): @@ -32,12 +31,6 @@ def is_mod(): return commands.check(predicate) -def is_listed(): - def predicate(ctx): - return ctx.message.author.id in listed_ids - return commands.check(predicate) - - def owner(ctx): return ctx.message.author.id == owner_id