Only broadcast the message when it gets enough stars
This commit is contained in:
parent
ffb94db5fe
commit
f79a563599
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user