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
|
||||
# faster, but it's not a problem for now. Might refactor this loop
|
||||
# and register_trigger() method if it comes to that.
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue