added completion for default twitch commands
This commit is contained in:
@@ -15,6 +15,14 @@
|
||||
#include <QFile>
|
||||
#include <QRegularExpression>
|
||||
|
||||
#define TWITCH_DEFAULT_COMMANDS \
|
||||
{ \
|
||||
"/help", "/w", "/me", "/disconnect", "/mods", "/color", "/ban", "/unban", "/timeout", \
|
||||
"/untimeout", "/slow", "/slowoff", "/r9kbeta", "/r9kbetaoff", "/emoteonly", \
|
||||
"/emoteonlyoff", "/clear", "/subscribers", "/subscribersoff", "/followers", \
|
||||
"/followersoff" \
|
||||
}
|
||||
|
||||
using namespace chatterino::providers::twitch;
|
||||
|
||||
namespace chatterino {
|
||||
@@ -274,6 +282,14 @@ QString CommandController::execCustomCommand(const QStringList &words, const Com
|
||||
return result.replace("{{", "{");
|
||||
}
|
||||
|
||||
QStringList CommandController::getDefaultTwitchCommandList()
|
||||
{
|
||||
QStringList l = TWITCH_DEFAULT_COMMANDS;
|
||||
l += "/uptime";
|
||||
|
||||
return l;
|
||||
}
|
||||
|
||||
} // namespace commands
|
||||
} // namespace controllers
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user