fixed handling of tuple arguments

This commit is contained in:
RustyRaptor committed 2020-10-14 15:51:15 -06:00
1 parent ac84f93223
commit e53fb2ed4f
1 file changed
+1 -1
+1 -1
View File
@@ -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