From f79a56359934df2786aef0b5163881edbc003b37 Mon Sep 17 00:00:00 2001 From: fzorb Date: Mon, 7 Oct 2024 14:10:18 +0300 Subject: [PATCH] Only broadcast the message when it gets enough stars --- systems/starboard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/starboard.rb b/systems/starboard.rb index 5f936c3..2a46f8c 100644 --- a/systems/starboard.rb +++ b/systems/starboard.rb @@ -15,7 +15,7 @@ module StarboardSystem for attachment in event.message.attachments do attachments += " #{attachment.url}" end - if reactions >= ENV['MINSTARS'].to_i + if reactions = ENV['MINSTARS'].to_i message = event.message.content.sub!("@", "[at]") if message == nil message = event.message.content