Advertisement
Shiny_

Untitled

May 25th, 2014
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. EVAL_REGEX      = /\Aeval (?<msg>.*)\z/i
  2.  
  3. on :message, EVAL_REGEX do |m|
  4.     if m.user.to_s.downcase == ADMIN.downcase
  5.         eval(EVAL_REGEX.match(m.message)[:msg])
  6.     end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement