Fix | Use Sentence Ending Event for Sentence #4

Merged
yagich merged 2 commits from mud/potomark-bot-rb:feature/punctuation-sentence into main 2023-02-13 11:23:04 +00:00

2
bot.rb
View File

@ -64,7 +64,7 @@ bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event|
if $sentence.empty? if $sentence.empty?
next next
end end
event << "Congratulations, your sentence is: #{$sentence.values.join(" ")}." event << "Congratulations, your sentence is: #{$sentence.values.join(" ")}${event.message.content}"
$sentence.clear $sentence.clear
next next
end end