forked from yagich/potomark-bot-rb
Merge pull request 'Fix | Use Sentence Ending Event for Sentence' (#4) from mud/potomark-bot-rb:feature/punctuation-sentence into main
Reviewed-on: yagich/potomark-bot-rb#4
This commit is contained in:
commit
5af24f2f02
2
bot.rb
2
bot.rb
@ -64,7 +64,7 @@ bot.message(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event|
|
|||||||
if $sentence.empty?
|
if $sentence.empty?
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
event << "Congratulations, your sentence is: #{$sentence.values.join(" ")}."
|
event << "Congratulations, your sentence is: #{$sentence.values.join(" ")}${event.message.content}"
|
||||||
$sentence.clear
|
$sentence.clear
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user