Skip to content
2e1951c Jun 9, 2012
@tombell @ryanatwork @technicalpickles
42 lines (39 sloc) 768 Bytes
# Description:
# The Magic Eight ball
# Dependencies:
# None
# Configuration:
# None
# Commands:
# hubot eightball <query> - Ask the magic eight ball a question
# Author:
# ryanatwork
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",
"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.reply msg.random ball
Something went wrong with that request. Please try again.