How To Get Argument To Ignore Part Of Message
I just wondering how to get the if statement(if 0 < int(message.content)< 153:) to only test part of the message, not the full message.content. Eg: if I put in 1s 100, I want
Solution 1:
You can just simply add [3:]
to message.content
:
0 < int(message.content[3:]) < 153
. This only works if the message starts with 3 figures before the number (in your case it's 1s
)
Post a Comment for "How To Get Argument To Ignore Part Of Message"