Merge pull request 'Fix | Use Sentence Ending Event for Sentence' (#4) from mud/potomark-bot-rb:feature/punctuation-sentence into main

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2023-02-13 11:23:04 +00:00
+1 -1
View File
@@ -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 << "Congratulations, your sentence is: #{$sentence.values.join(" ")}${event.message.content}"
$sentence.clear
next
end