bitbot-3.11-fork/modules/eightball.py
2019-09-09 14:25:19 +01:00

43 lines
1.1 KiB
Python

#--depends-on commands
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.consts.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):
_name = "8Ball"
@utils.hook("received.command.8", alias_of="8ball")
@utils.hook("received.command.8ball", min_args=1)
@utils.kwarg("help", "Ask the mystic 8ball a question")
@utils.kwarg("usage", "<question>")
def decide(selfs, event):
event["stdout"].write("You shake the magic ball... it says %s" %
utils.irc.bold(random.choice(CHOICES)))