Attempt global error handling

This commit is contained in:
Matthias Portzel 2024-03-23 02:25:29 -04:00
parent 3517091fdb
commit 982ced773e
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,11 @@ def define_command text, options
$bot.application_command command_name do |event|
p "Command #{command_name} triggered"
yield event
begin
yield event
rescue => err
$study_channel.send "```rb\n#{PP.pp(err, "")}\n```"
end
end
end