Class: Plugins::Eightball
- Inherits:
-
Object
- Object
- Plugins::Eightball
- Includes:
- Cinch::Helpers, Cinch::Plugin
- Defined in:
- lib/Zeta/plugins/eightball.rb
Constant Summary collapse
- @@eightball =
Variables
[ "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" ]
Instance Method Summary collapse
- #execute(m, s) ⇒ Object
-
#shake! ⇒ Object
Methods.
Methods included from Cinch::Plugin
Instance Method Details
#execute(m, s) ⇒ Object
45 46 47 |
# File 'lib/Zeta/plugins/eightball.rb', line 45 def execute(m, s) m.safe_reply @@eightball.sample, true end |
#shake! ⇒ Object
Methods
41 42 43 |
# File 'lib/Zeta/plugins/eightball.rb', line 41 def shake! @@eightball.sample end |