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