Skip to content

feat(Twitch): update activity#11049

Open
xTsuKiZox wants to merge 5 commits into
PreMiD:mainfrom
xTsuKiZox:main
Open

feat(Twitch): update activity#11049
xTsuKiZox wants to merge 5 commits into
PreMiD:mainfrom
xTsuKiZox:main

Conversation

@xTsuKiZox

Copy link
Copy Markdown
Contributor

Description

Update of the Twitch activity, for the videos reuploads, for displaying the video title as well as the streamer’s profile photo

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected

@dimerp

dimerp Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

🖼️ Activity asset preview

Another day, another diff. Here's everything shiny I could dig out of this one.

Twitch (websites/T/Twitch) — update

Preview Source URL
logo https://cdn.rcd.gg/PreMiD/websites/T/Twitch/assets/logo.png
thumbnail https://cdn.rcd.gg/PreMiD/websites/T/Twitch/assets/thumbnail.png

Beep boop — I refresh this comment on every push, so no need to scroll. 🤖

@@ -1,4 +1,11 @@
import { ActivityType, Assets, getTimestamps, getTimestampsFromMedia, StatusDisplayType, timestampFromFormat } from 'premid'
import {
ActivityType,
import { ActivityType, Assets, getTimestamps, getTimestampsFromMedia, StatusDisplayType, timestampFromFormat } from 'premid'
import {
ActivityType,
Assets,
import {
ActivityType,
Assets,
getTimestamps,
ActivityType,
Assets,
getTimestamps,
getTimestampsFromMedia,
Assets,
getTimestamps,
getTimestampsFromMedia,
StatusDisplayType,
Comment on lines +7 to +8
timestampFromFormat
} from 'premid'
const title = getElement('[data-a-target="stream-title"]')
?.split('•')
.shift()
const title = getElement('title')?.replace(' - Twitch', '')
if (presenceData.details)
presence.setActivity(presenceData)
else presence.clearActivity()
if (presenceData.details)
presence.setActivity(presenceData)
else presence.clearActivity()
if (presenceData.details)
presence.setActivity(presenceData)
else presence.clearActivity()
if (presenceData.details)
presence.setActivity(presenceData)
else presence.clearActivity()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants