2017-08-19 15:29:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-07-04 15:15:59 +02:00
|
|
|
#include <QColor>
|
2018-06-26 17:25:24 +02:00
|
|
|
#include <QString>
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2023-01-08 13:07:06 +01:00
|
|
|
#include <vector>
|
|
|
|
|
2017-08-19 15:29:36 +02:00
|
|
|
namespace chatterino {
|
|
|
|
|
2020-12-26 12:42:39 +01:00
|
|
|
#ifndef ATTR_UNUSED
|
|
|
|
# ifdef Q_OS_WIN
|
|
|
|
# define ATTR_UNUSED
|
|
|
|
# else
|
|
|
|
# define ATTR_UNUSED __attribute__((unused))
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2018-06-26 17:25:24 +02:00
|
|
|
static const char *ANONYMOUS_USERNAME ATTR_UNUSED = "justinfan64537";
|
|
|
|
|
2022-12-03 12:10:11 +01:00
|
|
|
static constexpr int TWITCH_MESSAGE_LIMIT = 500;
|
|
|
|
|
2017-08-19 15:29:36 +02:00
|
|
|
inline QByteArray getDefaultClientID()
|
|
|
|
{
|
|
|
|
return QByteArray("7ue61iz46fz11y3cugd0l3tawb4taal");
|
|
|
|
}
|
|
|
|
|
2020-07-04 15:15:59 +02:00
|
|
|
static const std::vector<QColor> TWITCH_USERNAME_COLORS = {
|
|
|
|
{255, 0, 0}, // Red
|
|
|
|
{0, 0, 255}, // Blue
|
|
|
|
{0, 255, 0}, // Green
|
|
|
|
{178, 34, 34}, // FireBrick
|
|
|
|
{255, 127, 80}, // Coral
|
|
|
|
{154, 205, 50}, // YellowGreen
|
|
|
|
{255, 69, 0}, // OrangeRed
|
|
|
|
{46, 139, 87}, // SeaGreen
|
|
|
|
{218, 165, 32}, // GoldenRod
|
|
|
|
{210, 105, 30}, // Chocolate
|
|
|
|
{95, 158, 160}, // CadetBlue
|
|
|
|
{30, 144, 255}, // DodgerBlue
|
|
|
|
{255, 105, 180}, // HotPink
|
|
|
|
{138, 43, 226}, // BlueViolet
|
|
|
|
{0, 255, 127}, // SpringGreen
|
|
|
|
};
|
|
|
|
|
2021-12-26 14:21:52 +01:00
|
|
|
static const QStringList TWITCH_DEFAULT_COMMANDS{
|
|
|
|
"help",
|
|
|
|
"w",
|
|
|
|
"me",
|
|
|
|
"disconnect",
|
|
|
|
"mods",
|
|
|
|
"vips",
|
|
|
|
"color",
|
|
|
|
"commercial",
|
|
|
|
"mod",
|
|
|
|
"unmod",
|
|
|
|
"vip",
|
|
|
|
"unvip",
|
|
|
|
"ban",
|
|
|
|
"unban",
|
|
|
|
"timeout",
|
|
|
|
"untimeout",
|
|
|
|
"slow",
|
|
|
|
"slowoff",
|
|
|
|
"r9kbeta",
|
|
|
|
"r9kbetaoff",
|
|
|
|
"emoteonly",
|
|
|
|
"emoteonlyoff",
|
|
|
|
"clear",
|
|
|
|
"subscribers",
|
|
|
|
"subscribersoff",
|
|
|
|
"followers",
|
|
|
|
"followersoff",
|
|
|
|
"host",
|
|
|
|
"unhost",
|
|
|
|
"raid",
|
|
|
|
"unraid",
|
|
|
|
"delete",
|
2022-04-02 00:14:42 +02:00
|
|
|
"announce",
|
2022-05-22 13:53:45 +02:00
|
|
|
"requests",
|
2024-06-22 12:36:29 +02:00
|
|
|
"warn",
|
2021-12-26 14:21:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const QStringList TWITCH_WHISPER_COMMANDS{"/w", ".w"};
|
|
|
|
|
2017-08-19 15:29:36 +02:00
|
|
|
} // namespace chatterino
|