Misskey to Discord
Preface
This guide uses make.com to act as a middleware to Discord and Misskey webhooks. There's a free plan that let's you run 1000 operations/month.
This setup runs everytime you post a note on Misskey. Misskey considers posting a note as :
- writing a note (public AND private)
- renoting
- replying to someone
That means that, in one month, you'll get to run this setup between 500 and 1000 times depending on what you do. That should be enough as long as you're not utterly addicted to Misskey.
This setup let's you share renotes and replies to Discord if you so choose, but this is disabled by default.
1. What you need
- A discord webhook
- A make.com account
2. Discord setup
You'll need to setup a webhook first. Head to the settings of the channel you want your bot to post in, then to Integrations and New webhook.
Name it whatever you want, give it a profile pic if you wish to.
Copy the webhook URL and keep it somewhere.
Do NOT share this URL with anyone.
3. Misskey setup
Now you'll need to setup a webhook on Misskey.
Head over to https://misskey.io/settings/webhook and click on Create Webhook. In Webhook events, untoggle all but "When posting a note".
Give a name to your webhook and a secret word. I didn't have any use for the latter but it's not an optional field.
We'll come back to the URL field later.
4. Setup the make.com scenario
Head over to make.com and in the Scenarios tab. Download the blueprint below and import it.
Click on the HTTP module. In the URL field, paste the URL to your Discord webhook.
Then click on the Webhooks module. Create a new webhook and give it a name. The module will generate a new URL. Copy it. Head back to your Misskey webhook and paste this url in the URL field. Save the webhook.
There's a filter between the two modules, with two conditions. The first condition is to exclude notes that are replies to another users. You can remove this one if you want to share your replies on Discord.
The second one is to only share public notes. You should probably keep this one.
The third one is to not share renotes. You can disable that one if you want to share them on Discord.
Make sure the schedule setting is set to immediately. You're done!
BONUS: If you want to make a pingable role, you can just add <@&{roleID}> to the message in HTTP module. Replace {roleID} with the actual role ID.
Link to blueprint : https://drive.google.com/file/d/12-JB7ZdDRVgWhbggjjtOQRFzKPRpvIP-/view