Advertisement
Shiny_

SZATAN

May 15th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.37 KB | None | 0 0
  1. require "cinch"
  2.  
  3. FAMINA__REGEX = /\bfamina?\b/i
  4. NICK_BOTA = "DiggerowyTest"
  5.  
  6. bot = Cinch::Bot.new do
  7.     configure do |c|
  8.         c.server = "irc.pirc.pl"
  9.         c.channels = "#wykoppl"
  10.         c.nick = NICK_BOTA
  11.     end
  12.  
  13.     on :join do |m|
  14.         bot.irc.send "MODE " + NICK_BOTA + " +B"
  15.     end
  16.  
  17.     on :message, FAMINA__REGEX do |m|
  18.         m.reply "Proszę, nie mówcie o niej :("
  19.     end
  20. end
  21. bot.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement