Added clip creation support 🎬 (#2271)

You can create clips with `/clip` command, `Alt+X` keybind or `Create a clip` option in split header's context menu. This requires a new authentication scope so re-authentication will be required to use it.

Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Paweł
2021-01-17 14:47:34 +01:00
committed by GitHub
parent 0542b81a03
commit cfcac99ae6
12 changed files with 253 additions and 8 deletions
@@ -452,6 +452,19 @@ void CommandController::initialize(Settings &, Paths &paths)
return "";
});
this->registerCommand("/clip", [](const auto &words, auto channel) {
if (!channel->isTwitchChannel())
{
return "";
}
auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
twitchChannel->createClip();
return "";
});
}
void CommandController::save()