mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 23:54:58 +00:00
Update server_commands.py
This commit is contained in:
parent
6eee3fb161
commit
20d1ef19b1
1 changed files with 5 additions and 1 deletions
|
@ -84,9 +84,13 @@ class ServerCommands(commands.Cog):
|
||||||
try:
|
try:
|
||||||
if args[0] in ['mute', 'stfu', 'gtfo', 'ban', 'noob', 'tban', 'tempban', 'warn', 'mv', 'kick', 'cc']:
|
if args[0] in ['mute', 'stfu', 'gtfo', 'ban', 'noob', 'tban', 'tempban', 'warn', 'mv', 'kick', 'cc']:
|
||||||
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")
|
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")
|
||||||
|
elif args[0] == 'slconfig':
|
||||||
|
if args[1] not in ['add', 'remove']:
|
||||||
|
raise no_permission(['IS_SENIOR_ADMIN'])
|
||||||
|
else:
|
||||||
|
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")
|
||||||
else:
|
else:
|
||||||
raise no_permission(['IS_SENIOR_ADMIN'])
|
raise no_permission(['IS_SENIOR_ADMIN'])
|
||||||
await ctx.send(embed=em)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
em.title='Command error'
|
em.title='Command error'
|
||||||
em.colour = 0xFF0000
|
em.colour = 0xFF0000
|
||||||
|
|
Loading…
Reference in a new issue