Feature | Add Support for More Punctuation Characters #3

Merged
yagich merged 1 commits from mud/potomark-bot-rb:feature/punctuation-sentence into main 2023-02-13 11:19:46 +00:00
Showing only changes of commit 0529dbac85 - Show all commits

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