-
Notifications
You must be signed in to change notification settings - Fork 0
/
rem.py
40 lines (37 loc) · 2 KB
/
rem.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
import chitchat
async def command(prefix, target, message):
if '-n' in message:
n = message[2]
for i in n
databess.removeStones(target, n)
return (rem(prefix, target, message) for i in range(n))
else:
databess.removeStones(target, 1)
return rem(prefix, target, message)
pantheons=[greek1, greek2, japanese1, japanese2, indian1, indian2, egyptian1, egyptian2, hero, threekingdoms, samurai, constellation1, constellation2, chinese, angel1, angel2, archdemon]
def rem(channel, nick, message)
if message[1] == gf and (nick in cmds.nicklist):
currentgf1 = message[2]
currentgf2 = message[3]
return cc.privmsg(channel, message="Current godfest is set to {0} and {1}!".format(message[3], message[4])
elif message[2] == gala and (nick in cmds.nicklist):
currentgala = message[2]
return cc.privmsg(channel, message="Current gala is set to {0}!".format(message[3])
elif (message[2] in pantheons) and (message[3] in pantheons):
roll = random.choice(#make a list with gala + pantheon and random choose from it)
databess.addbox(nick, roll)
return cc.privmsg(channel, message="You rolled a {0}".format(roll)
elif message[1] in pantheons:
if message[1] == "current":
roll = random.choice(#make a list with current gala + pantheon + gfe and random choose from it)
databess.addbox(nick, roll)
return cc.privmsg(channel, message="You rolled a {0}".format(roll)
else:
roll = random.choice(#make a list with gala + pantheon and random choose from it)
databess.addbox(nick, roll)
return cc.privmsg(channel, message="You rolled a {0}".format(roll)
elif message[1] == None:
roll = random.choice(#make a list with currentgala + currentgf1-2 set before by some hop + gfe)
return cc.privmsg(channel, message="You rolled a {0}".format(roll)
else:
return cc.privmsg(channel, message="I don't understand you.")