mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Removed listed_ids
This commit is contained in:
parent
e1a582be05
commit
f610a341be
2 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue