Twitch Live Discord Announcement w/ Timestamps
This app notifies you, in a Discord channel, whenever you go live on Twitch. This app also will update that same live message whenever you go offline, showing that streams VOD with timestamps instead.
Getting Started
- Install the app and set your
DIS_CHANNEL_ID
to be the ID of the Discord that will
receive the alerts
- Set
PROFILE_IMAGE_URL
to the URL of your Twitch profile picture
- Link your Discord and Twitch accounts to Autocode
Customizing the Live Alert Message
To customize the alert message you get in your Discord channel, go to
/functions/events/twitch/me/stream/online.js
, find this block of code, and modify it:
/* Message Handler */
const message_content =
`Attention all: ${user_login} is **live** ${action} **${game_name}**!!`;
/* Output */
await lib.discord.channels['@0.3.2'].messages.create({
You can set the message to be anything you like! You can even take a look at autocode's 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!
To save on resources, in /functions/events/twitch/me/stream/offline.js
the original streamed game's title is assumed
to be in the live message. This can be seem here:
const game = prev_message.content.split("**")[3];
This is later used for the VOD Markers system.
VOD Markers
To properly utilize the VOD markers system, ensure you are using an external software (such as Streamer.bot)
to create a stream marker whenever your stream's 'Game Category' is updated. Ensure the marker's name is the title of the game switched to.
This implementation is not present in this project to
ensure autocode is utilized as minimally as possible. Thus ensuring a free-to-use account.
Thank You!
If you have any questions or problems, please contact Autumnnova on Discord.