Answer the question
In order to leave comments, you need to log in
Discord.py tuple and split, what's the problem?
@commands.command(pass_context=True)
async def choice(self, ctx, *args:str):
choices = " ".join(args.split()[0:]).split(", ")
choiced = f "{random.choice(choices)}"
count = len(choices)
if count > 1:
embed = discord.Embed(title=f"{choiced}", description=f"{choices}", color=0x630099 )
embed.set_footer
(text=f"Requesting {ctx.author.name}")
await ctx.send(embed=embed)
else:
await ctx.send("-")
help choices = " ".join(list(args).split()[0:]).split(", ")
still do, but somehow it didn’t work
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question