cs-codex-dist-tests/Tools/BiblioTech/Configuration.cs

62 lines
2.2 KiB
C#
Raw Normal View History

2023-10-18 09:01:24 +00:00
using ArgsUniform;
namespace BiblioTech
{
public class Configuration
{
[Uniform("token", "t", "TOKEN", true, "Discord Application Token")]
public string ApplicationToken { get; set; } = string.Empty;
[Uniform("server-id", "sn", "SERVERID", true, "ID of the Discord server")]
public ulong ServerId { get; set; }
2023-10-25 09:53:33 +00:00
[Uniform("datapath", "dp", "DATAPATH", false, "Root path where all data files will be saved.")]
public string DataPath { get; set; } = "datapath";
[Uniform("admin-role-id", "a", "ADMINROLEID", true, "ID of the Discord server admin role")]
public ulong AdminRoleId { get; set; }
[Uniform("admin-channel-id", "ac", "ADMINCHANNELID", true, "ID of the Discord server channel where admin commands are allowed.")]
public ulong AdminChannelId{ get; set; }
2023-10-25 09:53:33 +00:00
[Uniform("rewards-channel-id", "rc", "REWARDSCHANNELID", false, "ID of the Discord server channel where participation rewards will be announced.")]
public ulong RewardsChannelId { get; set; }
2023-12-20 14:56:03 +00:00
[Uniform("chain-events-channel-id", "cc", "CHAINEVENTSCHANNELID", false, "ID of the Discord server channel where chain events will be posted.")]
public ulong ChainEventsChannelID { get; set; }
2024-02-01 22:02:10 +00:00
[Uniform("reward-api-port", "rp", "REWARDAPIPORT", false, "TCP listen port for the reward API.")]
public int RewardApiPort { get; set; } = 31080;
2023-12-20 14:56:03 +00:00
[Uniform("send-eth", "se", "SENDETH", false, "Amount of Eth send by the mint command. Default: 10.")]
public int SendEth { get; set; } = 10;
[Uniform("mint-tt", "mt", "MINTTT", false, "Amount of TestTokens minted by the mint command. Default: 1073741824")]
public int MintTT { get; set; } = 1073741824;
2023-10-25 09:53:33 +00:00
public string EndpointsPath
{
get
{
return Path.Combine(DataPath, "endpoints");
}
}
public string UserDataPath
{
get
{
return Path.Combine(DataPath, "users");
}
}
2023-12-18 10:27:28 +00:00
public string LogPath
{
get
{
return Path.Combine(DataPath, "logs");
}
}
2023-10-18 09:01:24 +00:00
}
}