Chatterino
TwitchCommon.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QColor>
4 #include <QString>
5 
6 namespace chatterino {
7 
8 #ifndef ATTR_UNUSED
9 # ifdef Q_OS_WIN
10 # define ATTR_UNUSED
11 # else
12 # define ATTR_UNUSED __attribute__((unused))
13 # endif
14 #endif
15 
16 static const char *ANONYMOUS_USERNAME ATTR_UNUSED = "justinfan64537";
17 
18 inline QByteArray getDefaultClientID()
19 {
20  return QByteArray("7ue61iz46fz11y3cugd0l3tawb4taal");
21 }
22 
23 static const std::vector<QColor> TWITCH_USERNAME_COLORS = {
24  {255, 0, 0}, // Red
25  {0, 0, 255}, // Blue
26  {0, 255, 0}, // Green
27  {178, 34, 34}, // FireBrick
28  {255, 127, 80}, // Coral
29  {154, 205, 50}, // YellowGreen
30  {255, 69, 0}, // OrangeRed
31  {46, 139, 87}, // SeaGreen
32  {218, 165, 32}, // GoldenRod
33  {210, 105, 30}, // Chocolate
34  {95, 158, 160}, // CadetBlue
35  {30, 144, 255}, // DodgerBlue
36  {255, 105, 180}, // HotPink
37  {138, 43, 226}, // BlueViolet
38  {0, 255, 127}, // SpringGreen
39 };
40 
41 static const QStringList TWITCH_DEFAULT_COMMANDS{
42  "help",
43  "w",
44  "me",
45  "disconnect",
46  "mods",
47  "vips",
48  "color",
49  "commercial",
50  "mod",
51  "unmod",
52  "vip",
53  "unvip",
54  "ban",
55  "unban",
56  "timeout",
57  "untimeout",
58  "slow",
59  "slowoff",
60  "r9kbeta",
61  "r9kbetaoff",
62  "emoteonly",
63  "emoteonlyoff",
64  "clear",
65  "subscribers",
66  "subscribersoff",
67  "followers",
68  "followersoff",
69  "host",
70  "unhost",
71  "raid",
72  "unraid",
73  "delete",
74  "announce",
75  "requests",
76 };
77 
78 static const QStringList TWITCH_WHISPER_COMMANDS{"/w", ".w"};
79 
80 } // namespace chatterino
QByteArray getDefaultClientID()
Definition: TwitchCommon.hpp:18
Definition: Application.cpp:48
#define ATTR_UNUSED
Definition: Common.hpp:37