Bluesky Brand Mentions Detector for Discord
Once installed, this template will automatically listen for mentions of a specified word or phrase on Bluesky. Any time someone mentions the word/phrase, the post containing it will automatically be sent to a Discord channel of your choice.
How does this template work?
Bluesky doesn't provide a way to listen for mentions of words/phrases via a webhook. Therefore, we automatically poll Bluesky's search API periodically, and send any newly returned posts into Discord. We cache the timestamp of the most recently retrieved post using Autocode's keyvalue store API to prevent duplicated messages being sent to Discord.
How do I install this template?
Scroll to the top of this page and click the green Install Free
button.

Choose the account/organization you'd like to install this template to, give your project a name, then click next.

Link your Bluesky and Discord accounts using the Link
button next to each account. If you've already linked a Bluesky/Discord account to your Autocode account, you can reuse the same account by selecting it on the window that pops up. If you haven't yet connected an account, click Link New Resource
and follow the steps that are shown.

Once your accounts are linked (as shown on the screenshot below), click the Continue
button.

Finally, we need to set our project's environment variables.
- Set Search Query to the keyword or phrase that you'd like to listen for. For example, if you'd like to get an alert any time someone says the word
autocode
, then you'd type autocode
in this box.
- Set Discord Channel ID to the ID of the channel that you'd like to send the new post alert to. You can find this by enabling Discord Developer Mode, then right clicking the channel on Discord's sidebar.
- Set KV Prefix to
bluesky
, unless you're running multiple instances of this template. If you are running multiple instances of it, set this to a unique string.

Awesome, your project is all setup and ready to go! You'll now receive notifications inside Discord every time someone mentions your brand on Bluesky.
Frequently asked questions
- Can I customize how often this template checks for new posts?
- Yes! You can do this by clicking the
Scheduler
button at the top of the functions/checkForMentions.js
file. By default, this template checks for new mentions every five minutes. If you're checking for a often-mentioned keyword then you may want to check more frequently, as the Bluesky API only returns the latest 30 results. If you're checking for a keyword that isn't mentioned very often, you could set it to check less often to reduce the amount of compute time your project uses.
- Where can I get further support with this template?