thegamer 8 years ago
parent
commit
4e8adf41f5
1 changed files with 13 additions and 1 deletions
  1. 13 1
      tubiabot.rb

+ 13 - 1
tubiabot.rb

@@ -25,13 +25,25 @@ class Caffe
   end
 end
 
+class Amici
+  include Cinch::Plugin
+
+  match /lavor(o|are|atori)/
+
+  def execute(m)
+    users = [ "qup", "imega", "gresci","jigen","lgine","encrypt" ]
+    requests = [ "oggi non ho voglia di fare un cazzo", "caffè?", "andiamo al bar?" ]
+    m.reply users.sample+" "+users.sample+" "+requests.sample
+  end
+end
+
 
 bot = Cinch::Bot.new do
   configure do |c|
     c.server = "irc.mufhd0.net"
     c.nick = "TubiaBot"
     c.channels = ["#indivia"]
-    c.plugins.plugins = [Caffe, ToniNegri]
+    c.plugins.plugins = [Caffe, ToniNegri,Amici]
   end
 end