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
3227452dec
commit
42d7cd516d
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ class ServerCommands(commands.Cog):
|
||||||
'mv, gtfo, kick, mute or warn from discord'
|
'mv, gtfo, kick, mute or warn from discord'
|
||||||
em = discord.Embed()
|
em = discord.Embed()
|
||||||
command = ''
|
command = ''
|
||||||
for x in range(len(args)):
|
for arg in args:
|
||||||
command += f'{args[x]} '
|
command += f'{arg} '
|
||||||
try:
|
try:
|
||||||
if args[0] in ['mute', 'stfu', 'gtfo', 'ban', 'unban', 'unmute', 'smite', 'noob', 'tban', 'tempban', 'warn', 'mv', 'kick', 'cc','say']:
|
if args[0] in ['mute', 'stfu', 'gtfo', 'ban', 'unban', 'unmute', 'smite', 'noob', 'tban', 'tempban', 'warn', 'mv', 'kick', 'cc','say']:
|
||||||
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")
|
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")
|
||||||
|
|
Loading…
Reference in a new issue