From ce02f1aeb5e0c1cbb789235eaf8e58f1b41474a8 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 13 Feb 2023 12:21:20 +0100 Subject: [PATCH] use sentence ending event content when printing sentence --- bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.rb b/bot.rb index 275da5f..4417a03 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 << "Congratulations, your sentence is: #{$sentence.values.join(" ")}${event.message.content}" $sentence.clear next end