mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
23 lines
735 B
C#
23 lines
735 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace CodexDiscordBotPlugin
|
|
{
|
|
public class DiscordBotContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public const string EndpointsPath = "/var/endpoints";
|
|
public override string AppName => "discordbot-bibliotech";
|
|
public override string Image => "thatbenbierens/codex-discordbot:initial";
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<DiscordBotStartupConfig>();
|
|
|
|
AddEnvVar("TOKEN", config.Token);
|
|
AddEnvVar("SERVERNAME", config.ServerName);
|
|
AddEnvVar("ADMINROLE", config.AdminRoleName);
|
|
|
|
AddEnvVar("ENDPOINTS", EndpointsPath);
|
|
}
|
|
}
|
|
}
|