Answer the question
In order to leave comments, you need to log in
Why does the script for a random response from the bot to the discord not work?
@client.command( pass_context = True )
async def sry ( ctx ):
answer_bot = ["прощаю", "не прощаю"]
author = ctx.message.author
await ctx.send( f"{author.mention}" + random.randrange(answer_bot))
trueAnswers = 0
if answer_bot == "прощаю":
trueAnswers + 1
await ctx.send(trueAnswers +"/3")
elif answer_bot == "не прощаю":
trueAnswers - 1
await ctx.send(trueAnswers +"/3")
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