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