mirror of
https://github.com/RustyRaptor/GodEmperorBot-Cogs.git
synced 2026-12-03 15:55:19 -07:00
fixed handling of tuple arguments
This commit is contained in:
1 parent
ac84f93223
commit
e53fb2ed4f
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ class CMD(commands.Cog):
|
||||
@commands.command()
|
||||
async def cmd(self, ctx, arg, *arg2):
|
||||
try:
|
||||
await ctx.send(programs[arg](arg2))
|
||||
await ctx.send(programs[arg](" ".join(arg2) if type(arg2) is tuple else ""))
|
||||
except KeyError:
|
||||
await ctx.send("No such command")
|
||||
return
|
||||
Reference in new issue
Block a user