Only broadcast the message when it gets enough stars

This commit is contained in:
fzorb 2024-10-07 14:10:18 +03:00
parent ffb94db5fe
commit f79a563599

View File

@ -15,7 +15,7 @@ module StarboardSystem
for attachment in event.message.attachments do for attachment in event.message.attachments do
attachments += " #{attachment.url}" attachments += " #{attachment.url}"
end end
if reactions >= ENV['MINSTARS'].to_i if reactions = ENV['MINSTARS'].to_i
message = event.message.content.sub!("@", "[at]") message = event.message.content.sub!("@", "[at]")
if message == nil if message == nil
message = event.message.content message = event.message.content