IceDragon200

[I]Rescue Code

Apr 4th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.11 KB | None | 0 0
  1. begin
  2.   result = eval(command)
  3. rescue(Exception) => result
  4.   msg @channel, "==> #{result.message}"
  5. end
Advertisement
Add Comment
Please, Sign In to add comment