From 0529dbac85d4f8646e2636c13519d480ab8e37df Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 13 Feb 2023 12:17:47 +0100 Subject: [PATCH] add support for more punctuation characters --- bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.rb b/bot.rb index 16b4d56..275da5f 100644 --- a/bot.rb +++ b/bot.rb @@ -60,7 +60,7 @@ bot.reaction_remove do |event| end bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event| - if event.message.content == "." + if ['?', '!', '.', '...'].include? event.message.content if $sentence.empty? next end -- 2.30.2