Abyssal
Home
Tools
Docs
Support
Dashboard
# Social The Social Notifications module posts an announcement in Discord when a tracked YouTube channel uploads a video or short, or when a tracked Twitch channel goes live. Channels are linked and configured entirely in the dashboard; there are no slash commands for members. ## Enabling Toggle the module on the Modules page of the dashboard. The bot itself must have a YouTube API key configured for the YouTube tab; polling is disabled and a warning is logged if the key is missing. The Twitch tab needs a Twitch client ID and secret on the bot; until they are set, the tab shows a still in development notice and channels cannot be added. ## Dashboard configuration All setup lives on the **Social Notifications** page with a YouTube and a Twitch tab. **YouTube tab** - **Add Channel** - enter a channel handle (starting with `@`) or a `UC...` channel ID. The input is validated live against the YouTube API and shows a preview of the channel. - **Notification Channel** - the Discord text or announcement channel that receives the announcements. Required. - **Content Types to Follow** - toggles for **Videos** and **Shorts**; at least one must be enabled. - **Role to Ping** - an optional role mentioned via `{ping.role}`. - **Notification Message** - the message template, editable with the message builder (plain text or full embeds). The default is `**{channel.name}** just uploaded a new {post.type}!` followed by the link. - Variables: `{channel.name}` (alias `{channel}`), `{channel.handle}`, `{post.type}`, `{post.title}` (alias `{title}`), `{url}` (alias `{link}`), `{author}`, `{time}` and `{ping.role}`. **Twitch tab** - **Add Channel** - enter the channel name (starting with `@` is fine) or a `twitch.tv/` link. The input is validated live against the Twitch API and shows a preview of the channel. - **Notification Channel** - the Discord text or announcement channel that receives the live announcements. Required. - **Role to Ping** - an optional role mentioned via `{ping.role}`. - **Notification Message** - the message template, editable with the message builder. The default is `**{channel.name}** just went live streaming {game}!` followed by the link. - Variables: `{channel.name}` (alias `{channel}`), `{channel.handle}`, `{title}`, `{game}`, `{url}` (alias `{link}`), `{author}` and `{ping.role}`. - Tracked channels on both tabs are stored per guild and can be edited or removed (with confirmation) from the channel list. ## Commands There are no commands for this module; all setup happens in the dashboard under Social Notifications. ## How it works / Key flows - A background loop runs every 30 seconds and polls each guild at its configured interval, defaulting to 4 minutes for YouTube (`modules.social.youtube.pollIntervalMinutes`, minimum 1) and 2 minutes for Twitch (`modules.social.twitch.pollIntervalMinutes`, minimum 1). - For Videos and Shorts the bot reads the channel's uploads playlist; every new upload in it is announced once. - On Twitch the bot batch-checks every followed channel in as few API calls as possible (up to 100 channels per call, deduplicated across guilds) and announces when a channel's current stream id changes, which means one announcement per stream start. - The first poll after adding a channel only records the current state (seeding), so no backfill spam is sent; every later change posts one announcement. - Variables are substituted in the message and, when a message payload is used, inside embed titles, descriptions, fields, author and footer. If the finished message contains no link, the bot appends it automatically. - Announcements can take up to one poll interval to appear after the channel publishes or goes live. ## Notes - If a tracked YouTube channel is deleted or its ID becomes invalid, the YouTube API returns 404 and a warning is logged; remove and re-add the channel from the dashboard. - Entries without a notification channel are skipped silently during polling. - The Twitch tab stays in development mode until the bot owner sets the Twitch API credentials: existing entries are kept, but nothing can be added and nothing is polled.