Skip to content

Commit 30564a8

Browse files
committed
Update command now only works for owners
1 parent e3361d9 commit 30564a8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
'''
2424

25-
__version__ = '1.3.4'
25+
__version__ = '1.3.5'
2626

2727
import discord
2828
from discord.ext import commands
@@ -325,8 +325,12 @@ async def about(self, ctx):
325325

326326

327327
@commands.command()
328-
@commands.has_permissions(administrator=True)
329328
async def update(self, ctx):
329+
allowed = [int(x) for x in self.config.get('OWNERS', '').split(',')]
330+
331+
if ctx.author.id not in allowed:
332+
return
333+
330334
await ctx.trigger_typing()
331335

332336
async with self.session.get('https://api.kybr.tk/modmail') as resp:

0 commit comments

Comments
 (0)