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