A Discord starboard bot
When a message gets three ⭐ reactions from people other than its author, the bot reposts it in #starboard with its text, its first picture and a link back. It's posted once, and the count on the repost follows stars added and taken away. /starboard stars changes how many it takes.
What it does
- Someone reacts to a message with ⭐. Stars from its author don't count, and nor do stars in the starboard itself.
- The bot adds the star to that message's row in the stars collection.
- When it has enough, the bot posts it in #starboard with its text, its first attachment and a link to it.
- Later stars, and stars taken away, change the count on that post.
Counting reactions means reacting to server events, which needs a bot that stays connected to Discord, on the Paid plan.
Commands
/starboard starsSets how many ⭐ a message needs, from 1 to 50. Needs the Manage Server permission.
Before you add it
- A channel named starboard where the bot can send messages and attach files.
- The Message Content intent turned on for your application in the Discord Developer Portal, so the bot can repost the text.
How adding it works
Press Add to my server and Buildcord asks you to sign up or sign in. It then makes a new bot from this template, with every flow already drawn. Paste your Discord bot token, add the bot to your server with the invite link and deploy. Nothing is final: the template is an ordinary bot you can open and change.
What you can change
- Count another emoji by changing the ⭐ in both flows.
- Change how the repost looks in the Embeds page.
- Leave channels such as #rules out with a channel check.
Questions
Do stars count if the bot was offline?
Stars are counted as they're added, so ones added while the bot wasn't running are missed. The message still reaches the board once enough new ones come in.
Can a message be posted twice?
No. Its row remembers that it was posted, and one run at a time handles each message, so two quick stars can't post it twice.