use sentence ending event content when printing sentence

This commit is contained in:
mud mud 2023-02-13 12:21:20 +01:00
parent 0529dbac85
commit ce02f1aeb5
Signed by: mud
GPG Key ID: D29C9385CC54F61C

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