2023-10-24 09:51:29 +02:00
|
|
|
|
using Core;
|
2023-11-12 10:07:23 +01:00
|
|
|
|
using KubernetesWorkflow.Types;
|
2023-10-24 09:51:29 +02:00
|
|
|
|
|
|
|
|
|
namespace CodexDiscordBotPlugin
|
|
|
|
|
{
|
|
|
|
|
public static class CoreInterfaceExtensions
|
|
|
|
|
{
|
2024-04-13 17:09:17 +03:00
|
|
|
|
public static RunningPod DeployCodexDiscordBot(this CoreInterface ci, DiscordBotStartupConfig config)
|
2023-10-24 09:51:29 +02:00
|
|
|
|
{
|
2023-10-24 10:06:07 +02:00
|
|
|
|
return Plugin(ci).Deploy(config);
|
2023-10-24 09:51:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
2024-04-13 17:09:17 +03:00
|
|
|
|
public static RunningPod DeployRewarderBot(this CoreInterface ci, RewarderBotStartupConfig config)
|
2024-01-31 11:52:02 -05:00
|
|
|
|
{
|
|
|
|
|
return Plugin(ci).DeployRewarder(config);
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-24 09:51:29 +02:00
|
|
|
|
private static CodexDiscordBotPlugin Plugin(CoreInterface ci)
|
|
|
|
|
{
|
|
|
|
|
return ci.GetPlugin<CodexDiscordBotPlugin>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|