Prevent users from putting in numbers that are too high

This commit is contained in:
minerobber 2018-12-23 20:00:37 +00:00
parent 6c791e570a
commit 61785c4035
1 changed files with 3 additions and 0 deletions

View File

@ -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":