!SO with latest video

Asked Oct 31, 2021·1 reply·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I have managed to set up a command !so that allows us to show out a user on YouTube stream but How do I get the command when triggered to also send a link to their latest video or no link of no videos

1 reply

Hey @Brave Dove!

It's going to be hard to help you without code to work on, but here's what you want to do in theory:

const latestVideoLink = PULL_LATEST_VIDEO_LINK;
if (latestVideoLink) {
`RESPONSE_WITH_LATEST_VIDEO_LINK`;
} else {
`RESPONSE_WITHOUT_LATEST_VIDEO_LINK`;
}