Twitch New Follower Discord Alerts
This app notifies you in a Discord channel whenever you get a new follower on Twitch.
Getting Started
- Install the app and set your
CHANNEL_ID
to be the ID of the Discord that will
receive the alerts
- Link your Discord and Twitch accounts to Autocode
- You're all set! Whenever a user follows you on Twitch, you will receive an alert on
the channel you added
Customizing the alert message
To customize the alert message you get in your Discord channel go to
/functions/events/twitch/me/channel/follow.js
and find this block of code, and modify it:
await lib.discord.channels['@0.1.1'].messages.create({
"channel_id": `${process.env.CHANNEL_ID}`,
"content": "",
"tts": false,
"embed": {
"type": "rich",
"title": "New Follower!",
"description": `**${context.params.event.user_name || context.params.event.user_login }** just followed you π`,
"color": 0x6441a5
}
});
You can set the message to be anything you like! You can even take a look at our Embed Builder
to build out more complex embed message easily, and paste the generated code here.
Then all you need to do is save, and its live!
Thank You!
If you have any questions or feedback, please join our community Discord server
from the link in the top bar. You can also follow us on Twitter, @AutocodeHQ.