Add exception to large numbers when you're parroting or factoring

This commit is contained in:
minerobber 2019-05-27 04:37:56 +00:00
parent ba4048d6d2
commit 81e28e6b0f
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from math import floor
@plugin.group("mbtilde","<operation> [args]")
def mbtilde(bot,channel,nick,subcmd,*args):
for arg in args:
if (arg.isdigit() and int(arg)>100 and subcmd!="factor"):
if (arg.isdigit() and int(arg)>100 and subcmd not in ("factor","parrot")):
bot.say(channel,"no u")
return True
if subcmd in "add sub mult div mod pow".split() and len(args)!=2: