Add new command placeholders: {channel.name}, {channel.id}, {stream.game}, {stream.title}, {my.id}, {my.name} (#3155)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2021-09-11 14:35:26 +02:00
committed by GitHub
parent c0f4a410fa
commit 9b9fd7d403
5 changed files with 117 additions and 15 deletions
@@ -34,6 +34,10 @@ public:
CommandModel *createModel(QObject *parent);
QString execCustomCommand(const QStringList &words, const Command &command,
bool dryRun, ChannelPtr channel,
std::map<QString, QString> context = {});
private:
void load(Paths &paths);
@@ -57,9 +61,6 @@ private:
std::unique_ptr<pajlada::Settings::Setting<std::vector<Command>>>
commandsSetting_;
QString execCustomCommand(const QStringList &words, const Command &command,
bool dryRun);
QStringList commandAutoCompletions_;
};