Advertisement
Shiny_

Untitled

May 16th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.28 KB | None | 0 0
  1. # góra:
  2. SAY_REGEX       = /\Asay (?<msg>.*)\z/i
  3. ADMIN           = "Linux_Shines"
  4. CHANNEL_NAME    = "#wykoppl"
  5.  
  6. # komenda:
  7.     on :message, SAY_REGEX do |m|
  8.         if m.user.to_s.downcase == ADMIN.downcase
  9.             msg = SAY_REGEX.match(m.message)[:msg]
  10.             bot.Channel(CHANNEL_NAME).msg msg
  11.         end
  12.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement