Skip to content

Commit

Permalink
Updated gemfile and error logging
Browse files Browse the repository at this point in the history
Updated gem file so threads worked again as well as silenced internal
500 errors and this is discord api error related and not actionable by
end users.
  • Loading branch information
Humblemonk committed Feb 9, 2022
1 parent 5cea0f5 commit c1f5c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'dicebag', git: 'https://github.com/Humblemonk/Dice-Bag.git', branch: 'master'
gem 'discordrb', github: 'shardlab/discordrb', branch: 'main'
gem 'discordrb', github: 'shardlab/discordrb', branch: 'threads'
gem 'dotenv', '~> 2.5'
gem 'rest-client', '~> 2.0', '>= 2.0.2'
gem 'rubocop'
Expand Down
2 changes: 1 addition & 1 deletion dice_maiden.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
else
event.respond "#{@user} Rolls:\n#{@error_check_roll_set}Reason: `Simplified roll due to character limit`"
end
elsif (e.message.include? "undefined method `join' for nil:NilClass") || (e.message.include? "The bot doesn't have the required permission to do this!") || (e.message.include? '500 Internal Server Error')
elsif (e.message.include? "undefined method `join' for nil:NilClass") || (e.message.include? "The bot doesn't have the required permission to do this!") || (e.message.include? '500: Internal Server Error')
time = Time.now.getutc
File.open('dice_rolls.log', 'a') { |f| f.puts "#{time} ERROR: #{e.message}" }
else
Expand Down

0 comments on commit c1f5c44

Please sign in to comment.