Advertisement
Shiny_

Untitled

Jul 6th, 2016
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.66 KB | None | 0 0
  1. require "cgi"
  2. require "cinch"
  3.  
  4. PORT             = 6667
  5. BOT_NICK         = "nrq"
  6. BOT_REALNAME     = BOT_NICK
  7. BOT_USER         = BOT_REALNAME
  8. SERVER_NAME      = "irc.pirc.pl"
  9. PASSWORD         = "PASS"
  10. CHANNEL_NAME     = "#mirkofm"
  11.  
  12. bot = Cinch::Bot.new do
  13.     configure do |c|
  14.         c.server            = SERVER_NAME
  15.         c.port              = PORT
  16.         c.channels          = CHANNEL_NAME
  17.         c.nick              = BOT_NICK
  18.         c.realname          = BOT_REALNAME
  19.         c.user              = BOT_USER
  20.         c.password          = PASSWORD
  21.     end
  22.  
  23.     on :message, /\br[uoó]mie[]ce\s\b/i do |m|
  24.         m.reply("janoosh zboczeniec: http://i.imgur.com/rjuhd2C.png")
  25.     end
  26. end
  27. bot.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement