Prevent users from putting in numbers that are too high
This commit is contained in:
parent
6c791e570a
commit
61785c4035
|
@ -3,6 +3,9 @@ from math import floor
|
|||
|
||||
@plugin.command("mbtilde","<operation> [args]")
|
||||
def on_mbtilde(bot,channel,nick,subcmd,*args):
|
||||
for arg in args:
|
||||
if (arg.isdigit() and int(arg)>100):
|
||||
bot.say(channel,"no u")
|
||||
if subcmd=="ask":
|
||||
bot.say(channel,"!tilde")
|
||||
elif subcmd=="parrot":
|
||||
|
|
Loading…
Reference in New Issue