@@ -17,6 +17,7 @@
|
||||
#include "singletons/Settings.hpp"
|
||||
#include "singletons/Theme.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/Clipboard.hpp"
|
||||
#include "util/CombinePath.hpp"
|
||||
#include "util/FormatTime.hpp"
|
||||
#include "util/Helpers.hpp"
|
||||
@@ -825,6 +826,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
}
|
||||
return "";
|
||||
});
|
||||
|
||||
this->registerCommand("/setgame", [](const QStringList &words,
|
||||
const ChannelPtr channel) {
|
||||
if (words.size() < 2)
|
||||
@@ -923,6 +925,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
|
||||
return "";
|
||||
});
|
||||
|
||||
this->registerCommand(
|
||||
"/delete", [](const QStringList &words, ChannelPtr channel) -> QString {
|
||||
// This is a wrapper over the standard Twitch /delete command
|
||||
@@ -965,6 +968,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
getApp()->twitch->sendRawMessage(words.mid(1).join(" "));
|
||||
return "";
|
||||
});
|
||||
|
||||
#ifndef NDEBUG
|
||||
this->registerCommand(
|
||||
"/fakemsg",
|
||||
@@ -981,6 +985,19 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
return "";
|
||||
});
|
||||
#endif
|
||||
|
||||
this->registerCommand(
|
||||
"/copy", [](const QStringList &words, ChannelPtr channel) -> QString {
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(
|
||||
makeSystemMessage("Usage: /copy <text> - copies provided "
|
||||
"text to clipboard."));
|
||||
return "";
|
||||
}
|
||||
crossPlatformCopy(words.mid(1).join(" "));
|
||||
return "";
|
||||
});
|
||||
}
|
||||
|
||||
void CommandController::save()
|
||||
|
||||
Reference in New Issue
Block a user