4 Commits

4
bot.rb
View File

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