Module: IRC::AutoBabble

Defined in:
lib/irc-qik-bot/utils/irc-auto-babble.rb

Class Method Summary collapse

Class Method Details

.babble(args) ⇒ Object



6
7
8
9
10
# File 'lib/irc-qik-bot/utils/irc-auto-babble.rb', line 6

def self.babble(args)
  dat = from_file "resource/babble_data"
  return dat unless dat.nil?
  "Babbler is drunk enough to babble more."
end

.helper(args) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/irc-qik-bot/utils/irc-auto-babble.rb', line 18

def self.helper(args)
  return <<-IRC_QIKBOT_HELP
  *******************************
  | IRC-Qikbot                  |
  |   its Qik, Easy, Extensible |
  | \\ Command-Set:              |
  |  |> hi/hey/hello            |
  |  |> babble BABBLE_ABOUT     |
  |  |> quote                   |
  |  |> unshort http://SHORTURL |
  |  |> google SEARCH_TERMS     |
  | talk to me, with my name    |
  |   like                      |
  |     > qbot: google irc-bot |
  *******************************
  IRC_QIKBOT_HELP
end

.quote(args) ⇒ Object



12
13
14
15
16
# File 'lib/irc-qik-bot/utils/irc-auto-babble.rb', line 12

def self.quote(args)
  dat = from_file "resource/babble_quotes"
  return dat unless dat.nil?
  "Philosopher is still thinking."
end