diff --git a/bot/plugins/useless.py b/bot/plugins/useless.py index 1bc605c..00391b3 100644 --- a/bot/plugins/useless.py +++ b/bot/plugins/useless.py @@ -330,14 +330,13 @@ class Useless(DatabasePlugin): %%asshole [] """ - nick = args.get('') 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 = args.get('') 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)