add support for more punctuation characters

This commit is contained in:
mud mud 2023-02-13 12:17:47 +01:00
parent e75ac68a57
commit 0529dbac85
Signed by untrusted user: mud
GPG Key ID: D29C9385CC54F61C

2
bot.rb
View File

@ -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