Added min asshole level for flummi

This commit is contained in:
mrhanky 2017-08-21 18:33:26 +02:00
parent a75dcbb6c2
commit 6b50005bd8
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -331,11 +331,15 @@ class Useless(DatabasePlugin):
%%asshole [<nick>]
"""
nick = args.get('<nick>', mask.nick)
asshole_perc = random.randint(0, 100)
if nick == 'mrhanky':
asshole_perc = 100
perc_min = 100
elif nick == 'Flummi':
perc_min = 90
else:
perc_min = 0
asshole_perc = random.randint(perc_min, 100)
return 'Asshole scan... {} is {}% of an asshole.'.format(nick, asshole_perc)
@command