From 738c4efa3bbb5fff527315400f12e7ae26c26b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 13 Feb 2023 14:36:25 +0300 Subject: [PATCH] remove space before comma --- bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.rb b/bot.rb index cd5a7c3..b70e3c9 100644 --- a/bot.rb +++ b/bot.rb @@ -64,7 +64,7 @@ bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event| if $sentence.empty? next end - event << "Congratulations, your sentence is: #{$sentence.values.join(" ")}#{event.message.content}" + event << "Congratulations, your sentence is: #{$sentence.values.join(" ").gsub(/\s,/, ",")}#{event.message.content}" $sentence.clear next end