-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmds.py
60 lines (39 loc) · 2.2 KB
/
cmds.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import asyncio
import collections
import random
import string
import chitchat as cc
def bellyblocker(prefix, target, message):
bellylist = ['belly', 'tummy', 'navelingus', 'nakadashi', 'ochinchin', 'bellyzuri',
'cum', 'midriff', 'cumdump', 'bully', 'dick', 'glistening',
'bellypillow', 'raspberry', 'tummies', 'bellies']
normalized = ''.join(l for l in message if l in string.ascii_lowercase)
return normalized in bellylist
def belly(prefix, target, message):
lewd = ['N-no..', 'S-stop..', "T-that's lewd necro-nii-sama..",
"If that's what you like..",
'P-please stop, t-that tickles..']
return cc.privmsg(target, message=random.choice(lewd))
not_necro = lambda prefix, *args: prefix.nick != 'necromanteion'
def belly2(prefix, channel, message):
return cc.kick(channel, prefix.nick, message='{0.nick} no ecchi!'.format(prefix))
def paizuri(prefix, channel, message, cache=collections.defaultdict(lambda: 1)):
ban_time = cache[prefix.nick]
cache[prefix.nick] *= 2
yield cc.mode(channel, '+b', prefix)
yield cc.kick(channel, prefix.nick,
message='Banned for {0} second{1}!'.format(ban_time, 's' if ban_time > 1 else ''))
yield from asyncio.sleep(ban_time)
yield cc.mode(channel, '-b', prefix)
yield cc.invite(prefix.nick, channel)
def help(prefix, channel, message):
helppls = ['Do ".rem" to roll on the Retarded Egg Machine!',
'Try ".paizuri" if you\'re a filthy perv!'] #all for now i guess
return (cc.notice(prefix.nick, line) for line in helppls)
nicklist = ['Didac', 'necromanteion', 'FbW', 'WizardofOrz', 'Waah', 'Excorcism']
def kick(prefix, channel, message):
return cc.kick(channel, prefix.nick=message[i+1], message='Go away!') for i in range(len(message)-1)
sakuballList = ['Yes!', 'I think you shouldn\'t do that.', 'Kill yourself.', 'Maybe you should do another thing.', 'Yes! It will be fun!',
'I think that will end up nicely. :3', 'Please give me some time to consider the answer.']
def sakuball(prefix, channel, message):
return cc.privmsg(channel, message='{0}: {1}'.format(prefix.nick, random.choice(sakuballList)))