2023-10-25 08:38:21 +00:00
|
|
|
|
namespace CodexDiscordBotPlugin
|
2023-10-24 08:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
public class DiscordBotStartupConfig
|
|
|
|
|
{
|
2023-12-11 10:09:29 +00:00
|
|
|
|
public DiscordBotStartupConfig(string name, string token, string serverName, string adminRoleName, string adminChannelName, string kubeNamespace, DiscordBotGethInfo gethInfo)
|
2023-10-24 08:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
Token = token;
|
|
|
|
|
ServerName = serverName;
|
|
|
|
|
AdminRoleName = adminRoleName;
|
2023-10-25 08:38:21 +00:00
|
|
|
|
AdminChannelName = adminChannelName;
|
2023-11-08 10:49:21 +00:00
|
|
|
|
KubeNamespace = kubeNamespace;
|
2023-12-11 10:09:29 +00:00
|
|
|
|
GethInfo = gethInfo;
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; }
|
|
|
|
|
public string Token { get; }
|
|
|
|
|
public string ServerName { get; }
|
|
|
|
|
public string AdminRoleName { get; }
|
2023-10-25 08:38:21 +00:00
|
|
|
|
public string AdminChannelName { get; }
|
2023-11-08 10:49:21 +00:00
|
|
|
|
public string KubeNamespace { get; }
|
2023-12-11 10:09:29 +00:00
|
|
|
|
public DiscordBotGethInfo GethInfo { get; }
|
2023-10-25 09:53:33 +00:00
|
|
|
|
public string? DataPath { get; set; }
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|
2023-12-11 10:09:29 +00:00
|
|
|
|
|
|
|
|
|
public class DiscordBotGethInfo
|
|
|
|
|
{
|
|
|
|
|
public DiscordBotGethInfo(string host, int port, string privKey, string marketplaceAddress, string tokenAddress, string abi)
|
|
|
|
|
{
|
|
|
|
|
Host = host;
|
|
|
|
|
Port = port;
|
|
|
|
|
PrivKey = privKey;
|
|
|
|
|
MarketplaceAddress = marketplaceAddress;
|
|
|
|
|
TokenAddress = tokenAddress;
|
|
|
|
|
Abi = abi;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Host { get; }
|
|
|
|
|
public int Port { get; }
|
|
|
|
|
public string PrivKey { get; }
|
|
|
|
|
public string MarketplaceAddress { get; }
|
|
|
|
|
public string TokenAddress { get; }
|
|
|
|
|
public string Abi { get; }
|
|
|
|
|
}
|
2023-10-24 08:06:07 +00:00
|
|
|
|
}
|