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:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user