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 random
from src import ModuleManager, utils
CHOICES = [
"Definitely",
"Yes",
"Probably",
"Maybe",
"Probably not",
"No",
"Definitely not",
"I don't know",
"Ask again later",
"The answer is unclear",
"Absolutely",
"Dubious at best",
"I'm on a break, ask again later",
"As I see it, yes",
"It is certain",
"Naturally",
"Reply hazy, try again later",
utils.irc.underline(utils.irc.color("DO NOT WASTE MY TIME",
utils.irc.COLOR_RED)),
"Hmm... Could be!",
"I'm leaning towards no",
"Without a doubt",
"Sources say no",
"Sources say yes",
"Sources say maybe"
]
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.8ball", min_args=1)
def decide(selfs, event):
"""
:help: Ask the mystic 8ball a question!
:usage: <question>
"""
event["stdout"].write("You shake the magic ball... it "
"says " + utils.irc.bold(random.choice(CHOICES)))
|