Answer the question
In order to leave comments, you need to log in
How can I make the command case insensitive?
I need to make a command in the discord bot that will work regardless of case, that is, I write the command !answer or !Answer and it works. Here is the code:
<
@client.command( pass_context = True )
async def Answer (ctx, text):
variable = [
"Конечно да",
"Конечно нет",]
await ctx.send("{}".format(random.choice(variable)))
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