Answer the question
In order to leave comments, you need to log in
In which line of code should lower be added?
Hello, I want the bot to accept a command in any case
. Where should I add lower()?
Here is the code:
if msg.text.startswith('Инфа'):
splitted = user_message.split(' ')
for i in range(len(splitted)):
if splitted[i] == 'я':
splitted[i] = 'ты'
res_text = " ".join(splitted)
rand = random.randint(1, 100)
await msg.reply(f"{res_text} {rand}%")
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