feat: add split action to clear /watching (#6759)

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Nerixyz
2026-01-24 11:27:18 +01:00
committed by GitHub
parent a362af6a37
commit d03e103403
3 changed files with 30 additions and 0 deletions
@@ -224,6 +224,19 @@ QString debugTest(const CommandContext &ctx)
break;
}
}
else if (command == "set-watching")
{
if (ctx.words.size() < 3)
{
ctx.channel->addSystemMessage("Missing name");
return {};
}
auto chan = getApp()->getTwitch()->getOrAddChannel(ctx.words.at(2));
if (chan != getApp()->getTwitch()->getWatchingChannel().get())
{
getApp()->getTwitch()->setWatchingChannel(chan);
}
}
else
{
ctx.channel->addSystemMessage(