Answer the question
In order to leave comments, you need to log in
How to check for the second word in a message?
Hello everyone, I have a question here. How to check for the second word in a message? Here is an example of "casino"
and supposedly if there is no second word in the message, then they will write. "Look" Casino (amount) ""
I tried to do something like this
args = event.object.text.lower().split()
if args[1] is None:
send_msg(id,"Введите казино (сумма)"
if(!args[0]) {
ctx.send('что то вводи')
}
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