forked from yagich/potomark-bot-rb
Merge pull request 'Feature | Add Support for More Punctuation Characters' (#3) from mud/potomark-bot-rb:feature/punctuation-sentence into main
Reviewed-on: yagich/potomark-bot-rb#3
This commit is contained in:
commit
122447095b
2
bot.rb
2
bot.rb
@ -60,7 +60,7 @@ bot.reaction_remove do |event|
|
|||||||
end
|
end
|
||||||
|
|
||||||
bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event|
|
bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event|
|
||||||
if event.message.content == "."
|
if ['?', '!', '.', '...'].include? event.message.content
|
||||||
if $sentence.empty?
|
if $sentence.empty?
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user