From 75566103d45ef116a947aa8321304672e04af2b2 Mon Sep 17 00:00:00 2001 From: Jaiden Mispy Date: Sun, 21 Aug 2016 23:37:44 +1000 Subject: [PATCH] Case-insensitive Bot::get --- lib/twitter_ebooks/bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twitter_ebooks/bot.rb b/lib/twitter_ebooks/bot.rb index 6b47650..64b0246 100644 --- a/lib/twitter_ebooks/bot.rb +++ b/lib/twitter_ebooks/bot.rb @@ -168,7 +168,7 @@ module Ebooks # @param username [String] # @return [Ebooks::Bot] def self.get(username) - all.find { |bot| bot.username == username } + all.find { |bot| bot.username.downcase == username.downcase } end # Logs info to stdout in the context of this bot