-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBotOptions.cs
More file actions
81 lines (69 loc) · 2.53 KB
/
BotOptions.cs
File metadata and controls
81 lines (69 loc) · 2.53 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
76
77
78
79
80
81
namespace OriBot;
public class BotOptions
{
public const string BotSettings = "BotSettings";
public required string Prefix { get; set; }
public required string DiscordToken { get; set; }
public required ulong MainGuildId { get; set; }
public required ulong ArtChannelId { get; set; }
public required ulong InfoChannelId { get; set; }
public required ulong LogChannelId { get; set; }
public required ulong NotesChannelId { get; set; }
public required ulong AutosChannelId { get; set; }
public required ulong FeedbackChannelId { get; set; }
public required ulong CommandsChannelId { get; set; }
public required ulong MembersChannelId { get; set; }
public required ulong StarBoardChannelId { get; set; }
public required ulong VoiceActivityChannelId { get; set; }
public required ulong MemberRoleId { get; set; }
public required ulong ImagesRoleId { get; set; }
public required ulong ModRoleId { get; set; }
public required ulong AnyModRoleId { get; set; }
public required ulong UnavailableModRoleId { get; set; }
}
public class CooldownOptions
{
public required int FrequentTaskIntervalHours { get; set; }
public required int RareTaskIntervalHours { get; set; }
}
public class ComponentNegativeResponsesOptions
{
public required string[] Responses { get; set; }
private readonly Random _random = new Random();
public string GetRandomResponse() => Responses[_random.Next(Responses.Length)];
}
public class UserJoinOptions
{
public required int NewUsersMinDays { get; set; }
public required int ImageRoleDays { get; set; }
}
public class PinOptions
{
public required int PinAmount { get; set; }
}
public class PassiveResponsesOptions
{
public required bool Enabled { get; set; }
public required bool AllowInAnyChannel { get; set; }
/// <summary>
/// The time that a user must wait before they can get another response from the bot.
/// </summary>
public required int CooldownTimeMS { get; set; }
/// <summary>
/// Whether or not the cooldown system is enabled.
/// </summary>
public required bool IsCooldownEnabled { get; set; }
/// <summary>
/// The chance of Ku chiming in.
/// </summary>
public required int KuChance { get; set; }
/// <summary>
/// Force the system to believe it's march 11.
/// </summary>
public required bool ForceBirthday { get; set; }
}
public class MessageAmountQuerying
{
public required string ApiUrl { get; set; }
public required string UserId { get; set; }
}