Skip to content

Commit

Permalink
greetings, tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Kempner committed Feb 15, 2012
1 parent 75e1fc5 commit e7ec8b6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions foosbot.rb
Expand Up @@ -18,6 +18,11 @@
@cleverbot = Cleverbot::Client.new
end

on :join do |m|
greetings = ['bam a lam', 'cocaine is a hell of a gem', '...'].shuffle
m.reply greetings.first if m.user.nick == bot.nick
end

on :message, "!foos" do |m|

if not @game
Expand Down Expand Up @@ -75,7 +80,7 @@
end

on :message, /\ rod/ do |m|
m.reply "That's what she said lol" if Random.new.rand(0..3) == 0
m.reply "That's what she said lol" if Random.new.rand(0..2) == 0
end

on :message, /nope/ do |m|
Expand All @@ -102,10 +107,6 @@
m.reply "*snap* *snap*" if Random.new(0..1) == 0
end

on :message, /\ dump\ / do |m|
m.reply "tee hee hee" if Random.new.rand(0..2) == 0
end

on :message, /foosbot/ do |m|
params = m.reply @cleverbot.write m.message
end
Expand All @@ -132,10 +133,6 @@
on :message, /desk\ flip|deskflip|flip\ a\ desk/ do |m|
m.reply "(╯°□°)╯︵ ┻━┻"
end

on :message, /why/ do |m|
m.reply "42" if Random.new.rand(0..2) == 0
end
end

bot.start

0 comments on commit e7ec8b6

Please sign in to comment.