forked from yagich/potomark-bot-rb
Compare commits
4 Commits
main
...
83f6a5db1a
| Author | SHA1 | Date | |
|---|---|---|---|
| 83f6a5db1a | |||
|
ce02f1aeb5
|
|||
| 122447095b | |||
|
0529dbac85
|
4
bot.rb
4
bot.rb
@@ -60,11 +60,11 @@ 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
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user