Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Fixed an issue where numberfact would always "approximate"
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Apr 8, 2018
1 parent 4d23733 commit d2822b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/quotes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Quotes
embed.description = facto.to_s

embed.author = Discordrb::Webhooks::EmbedAuthor.new(name: 'Number Facts!')
embed.footer = Discordrb::Webhooks::EmbedFooter.new(text: "Your number didn't have a fact, so a number was approximated for you.") if facto.split(' ')[0].to_i != number && type != 4
embed.footer = Discordrb::Webhooks::EmbedFooter.new(text: "Your number didn't have a fact, so a number was approximated for you.") if facto.split(' ')[0].to_s != number && type != 4
end
rescue RestClient::NotFound
event.channel.send_embed do |embed|
Expand Down

0 comments on commit d2822b8

Please # to comment.