diff --git a/src/scripts/eight-ball.coffee b/src/scripts/eight-ball.coffee new file mode 100644 index 000000000..d1c62d402 --- /dev/null +++ b/src/scripts/eight-ball.coffee @@ -0,0 +1,33 @@ +# The Magic Eight ball +# +# eightball - Ask the magic eight ball a question +# + +ball = [ + "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", + "Signs point to yes", + "Yes", + "Reply hazy, try again", + "Ask again later", + "Better not tell you now", + "Cannot predict now", + "Concentrate and ask again", + "Don't count on it", + "My reply is no", + "My sources say no", + "Outlook not so good", + "Very doubtful", +] + +module.exports = (robot) -> + robot.respond /(eightball|8ball)(.*)/i, (msg) -> + msg.send msg.random ball + +