aboutsummaryrefslogtreecommitdiff
path: root/modules/8all.py
blob: db5e4d3f2b1b286a1c66650f26409604085ff319 (about) (plain) (blame)
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
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))