Advertisement
Shiny_

Untitled

Dec 6th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.49 KB | None | 0 0
  1. require 'json'
  2. require 'cinch'
  3.      
  4. UserName    = 'Lunux'
  5. Canal       = '#mirkofm'
  6. WatchWord   = ''
  7.      
  8. lunux = Cinch::Bot.new do
  9.     configure do |c|
  10.     c.nick = UserName
  11.     c.channels = [Canal]
  12.     c.server = "irc.pirc.pl"
  13. end
  14.  
  15. on :connect do
  16.     lunux.User('NickServ').send "IDENTIFY #{WatchWord}"
  17. end
  18.  
  19. on :message, /\Alunux please\z/ do |m|
  20.     msg = ["Czego?", "Wpierdol?", "WAT", "WOT", "Odejdź ode mnie"]
  21.     messages = msg[rand(5)]
  22.     lunux.Channel(Canal).send messages
  23.     end
  24. end
  25.  
  26. lunux.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement