From ef6a0d871507dbcfdc0381b63e12ba3056143fc8 Mon Sep 17 00:00:00 2001 From: Tearzz Date: Tue, 24 Apr 2018 15:57:45 +0200 Subject: [PATCH] Updated CommandsHandler.rb Added error message for command "followed" if the user is the channel owner. --- CommandsHandler.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommandsHandler.rb b/CommandsHandler.rb index df277ea..b4c7f81 100644 --- a/CommandsHandler.rb +++ b/CommandsHandler.rb @@ -145,6 +145,8 @@ def Followed(user) response = "#{user} has been following #{CHANNEL} for " + response end response = "PRIVMSG ##{CHANNEL} :" + response + else + puts("[Command] ".bold.red + "#{user}: ".bold + "(YOU CAN'T FOLLOW YOURSELF)".bold.red) end log_msg = "[Command] #{user}: !followed"