Add 8ball module
This commit is contained in:
parent
0a96a79077
commit
80cbf2d66e
1 changed files with 30 additions and 0 deletions
30
modules/8all.py
Normal file
30
modules/8all.py
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
import random
|
||||||
|
|
||||||
|
|
||||||
|
class Module(object):
|
||||||
|
def __init__(self, bot, events):
|
||||||
|
events.on("received.command.8ball").hook(
|
||||||
|
self.decide,
|
||||||
|
min_args=1,
|
||||||
|
help="Ask the mystic 8ball a question!",
|
||||||
|
usage="<question>"
|
||||||
|
)
|
||||||
|
|
||||||
|
def decide(selfs, event):
|
||||||
|
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"
|
||||||
|
]
|
||||||
|
|
||||||
|
event["stdout"].write(random.choice(choices))
|
Loading…
Reference in a new issue