cs-codex-dist-tests/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs

20 lines
621 B
C#
Raw Normal View History

2023-10-24 08:06:07 +00:00
using KubernetesWorkflow;
namespace CodexDiscordBotPlugin
{
public class DiscordBotContainerRecipe : ContainerRecipeFactory
{
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);
}
}
}