-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
44 lines (39 loc) · 1.11 KB
/
__init__.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
from random import choice
affected_characters = {
'Eight Ball': [
# Affirmative
"It is certain.",
"It is decidedly so.",
"Without a doubt.",
"Yes definitely.",
"You may rely on it.",
"As I see it, yes.",
"Most likely.",
"Outlook good.",
"Yes.",
"Signs point to yes.",
# Non-committal
"Reply hazy, try again.",
"Ask again later.",
"Better not tell you now.",
"Cannot predict now.",
"Concentrate and ask again.",
# Negative
"Don't count on it.",
"My reply is no.",
"My sources say no.",
"Outlook not so good.",
"Very doubtful."
],
}
class PreChat:
@staticmethod
def hook(session, character, chat):
if character.name in affected_characters.keys():
character.skip_chat = True
class PostChat:
@staticmethod
def hook(session, character, chat):
if character.name in affected_characters.keys():
chat.set(choice(affected_characters.get(character.name)))
character.skip_chat = False