added basic browser extension stuff

This commit is contained in:
fourtf
2018-04-09 22:59:19 +02:00
parent 5fb42af9d0
commit 2687da38ba
19 changed files with 367 additions and 228 deletions
+8 -1
View File
@@ -5,6 +5,7 @@
#include "singletons/accountmanager.hpp"
#include "singletons/pathmanager.hpp"
#include <QApplication>
#include <QFile>
#include <QRegularExpression>
@@ -111,7 +112,13 @@ QString CommandManager::execCommand(const QString &text, ChannelPtr channel, boo
auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
if (!dryRun && twitchChannel != nullptr) {
if (commandName == "/uptime") {
if (commandName == "/debug-args") {
QString msg = QApplication::instance()->arguments().join(' ');
channel->addMessage(messages::Message::createSystemMessage(msg));
return "";
} else if (commandName == "/uptime") {
const auto &streamStatus = twitchChannel->GetStreamStatus();
QString messageText =