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