Merge branch 'master' into 'master'
does this make you smile? See merge request !1
This commit is contained in:
commit
18695cf011
|
@ -21,6 +21,13 @@ ISPS = (
|
||||||
'unity-media',
|
'unity-media',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
GENDERS = (
|
||||||
|
'male',
|
||||||
|
'female',
|
||||||
|
'shemale',
|
||||||
|
'hermaphrodite',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@irc3.plugin
|
@irc3.plugin
|
||||||
class Useless(DatabasePlugin):
|
class Useless(DatabasePlugin):
|
||||||
|
@ -317,6 +324,32 @@ class Useless(DatabasePlugin):
|
||||||
"""
|
"""
|
||||||
return ' '.join([self._rainbow(i, word) for i, word in enumerate(args['<words>'])])
|
return ' '.join([self._rainbow(i, word) for i, word in enumerate(args['<words>'])])
|
||||||
|
|
||||||
|
@command
|
||||||
|
def asshole(self, mask: IrcString, target: IrcString, args: DocOptDict):
|
||||||
|
"""Checks how much of an asshole you are.
|
||||||
|
|
||||||
|
%%asshole [<nick>]
|
||||||
|
"""
|
||||||
|
nick = args.get('<nick>') or mask.nick
|
||||||
|
asshole_perc = random.randint(0,100)
|
||||||
|
|
||||||
|
if nick == 'mrhanky':
|
||||||
|
asshole_perc = 100
|
||||||
|
|
||||||
|
return 'Asshole scan... {} is {}% of an asshole.'.format(nick, asshole_perc)
|
||||||
|
|
||||||
|
@command
|
||||||
|
def assume(self, mask: IrcString, target: IrcString, args: DocOptDict):
|
||||||
|
"""Assumes the gender of a nick or yourself.
|
||||||
|
|
||||||
|
%%assume [<nick>]
|
||||||
|
"""
|
||||||
|
nick = args.get('<nick>') or mask.nick
|
||||||
|
|
||||||
|
gender = random.choice(GENDERS)
|
||||||
|
|
||||||
|
return 'Assuming {}''s gender... they''re a {}.'.format(nick, gender)
|
||||||
|
|
||||||
# noinspection PyMethodMayBeStatic
|
# noinspection PyMethodMayBeStatic
|
||||||
def _rainbow(self, i, char):
|
def _rainbow(self, i, char):
|
||||||
return '\x03{0:02d}{1}'.format(RAINBOW[i % RAINBOW_LEN], char)
|
return '\x03{0:02d}{1}'.format(RAINBOW[i % RAINBOW_LEN], char)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user