Repository navigation
Expand file tree
/
Copy pathDiscordSettingsOption.cpp
More file actions
75 lines (54 loc) · 1.56 KB
/
Copy pathDiscordSettingsOption.cpp
File metadata and controls
75 lines (54 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* Discord Settings
*
* From: https://github.com/PokemonAutomation/
*
*/
#include "Common/Qt/Options/BatchWidget.h"
#include "CommonFramework/GlobalSettingsPanel.h"
#include "DiscordSettingsOption.h"
//#include <iostream>
//using std::cout;
//using std::endl;
namespace PokemonAutomation{
namespace Integration{
DiscordMessageSettingsOption::DiscordMessageSettingsOption()
: BatchOption(LockMode::LOCK_WHILE_RUNNING)
, instance_name(
false,
"<b>Instance Name:</b><br>If you are running multiple instances of this program, give it a name to distinguish them in notifications.",
LockMode::LOCK_WHILE_RUNNING,
"",
"(e.g. Living Room Switch)"
)
, user_id(
false,
"<b>Discord User ID:</b><br>Set this to your discord user ID to receive pings. Your ID is a number.",
LockMode::LOCK_WHILE_RUNNING,
"",
"123456789012345678"
)
, message(
false,
"<b>Discord Message:</b><br>Message to put on every discord notification.",
LockMode::LOCK_WHILE_RUNNING,
"",
"(e.g. Kim's Shiny Hunt)"
)
{
PA_ADD_OPTION(instance_name);
PA_ADD_OPTION(user_id);
// if (PreloadSettings::instance().DEVELOPER_MODE){
// PA_ADD_OPTION(message);
// }
}
DiscordSettingsOption::DiscordSettingsOption()
: BatchOption(LockMode::LOCK_WHILE_RUNNING)
{
PA_ADD_OPTION(message);
PA_ADD_OPTION(webhooks);
#ifdef PA_DPP
PA_ADD_OPTION(integration);
#endif
}
}
}