Add some debug messages, because why not.
This commit is contained in:
parent
eac7543bfe
commit
73f345eefc
1 changed files with 8 additions and 1 deletions
|
@ -7,7 +7,14 @@ class Repost < EventMachine::IRC::Client
|
||||||
# Having per-command lists of blocks of code to call would be
|
# Having per-command lists of blocks of code to call would be
|
||||||
# faster, but it's not a problem for now. Might refactor this loop
|
# faster, but it's not a problem for now. Might refactor this loop
|
||||||
# and register_trigger() method if it comes to that.
|
# and register_trigger() method if it comes to that.
|
||||||
trigger[:code].call(message) if message[:command] == trigger[:command]
|
begin
|
||||||
|
trigger[:code].call(message) if message[:command] == trigger[:command]
|
||||||
|
rescue => e
|
||||||
|
puts "inspect!"
|
||||||
|
puts e.inspect
|
||||||
|
puts "backtrace!"
|
||||||
|
puts e.backtrace
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue