2
0
mirror of synced 2025-01-12 17:44:08 +00:00
2024-04-13 17:12:14 +03:00

24 lines
651 B
C#

using Core;
using KubernetesWorkflow.Types;
namespace CodexDiscordBotPlugin
{
public static class CoreInterfaceExtensions
{
public static RunningPod DeployCodexDiscordBot(this CoreInterface ci, DiscordBotStartupConfig config)
{
return Plugin(ci).Deploy(config);
}
public static RunningPod DeployRewarderBot(this CoreInterface ci, RewarderBotStartupConfig config)
{
return Plugin(ci).DeployRewarder(config);
}
private static CodexDiscordBotPlugin Plugin(CoreInterface ci)
{
return ci.GetPlugin<CodexDiscordBotPlugin>();
}
}
}