From d2822b8b594f48841707a98b38a1f36f7c44b672 Mon Sep 17 00:00:00 2001 From: Chewsterchew Date: Sun, 8 Apr 2018 17:25:38 -0500 Subject: [PATCH] Fixed an issue where numberfact would always "approximate" --- lib/plugins/quotes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/quotes.rb b/lib/plugins/quotes.rb index 3aef4e2..ca5c81e 100644 --- a/lib/plugins/quotes.rb +++ b/lib/plugins/quotes.rb @@ -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|