Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (39 sloc) 0.768 kb
# 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",
"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
Jump to Line
Something went wrong with that request. Please try again.