made mrhanky happy

This commit is contained in:
Cephra 2017-08-21 13:38:31 +02:00
parent 4eeaa6b996
commit cdaad6b5d5

View File

@ -330,14 +330,13 @@ class Useless(DatabasePlugin):
%%asshole [<nick>]
"""
nick = args.get('<nick>') or mask.nick
asshole_perc = random.randint(0,100)
if nick == 'mrhanky':
asshole_perc = 100
return '{} is {}% of an asshole.'.format(nick, asshole_perc)
return 'Asshole scan... {} is {}% of an asshole.'.format(nick, asshole_perc)
@command
def assume(self, mask: IrcString, target: IrcString, args: DocOptDict):
@ -345,11 +344,9 @@ class Useless(DatabasePlugin):
%%assume [<nick>]
"""
nick = args.get('<nick>') or mask.nick
gender_ix = random.randint(0, len(GENDERS))
gender = GENDERS[gender_ix]
gender = random.choice(GENDERS)
return 'Assuming {}''s gender... they''re a {}.'.format(nick, gender)