2023-10-24 07:51:29 +00:00
|
|
|
|
using Core;
|
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace CodexDiscordBotPlugin
|
|
|
|
|
{
|
|
|
|
|
public static class CoreInterfaceExtensions
|
|
|
|
|
{
|
2023-10-24 08:29:07 +00:00
|
|
|
|
public static RunningContainer 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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static CodexDiscordBotPlugin Plugin(CoreInterface ci)
|
|
|
|
|
{
|
|
|
|
|
return ci.GetPlugin<CodexDiscordBotPlugin>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|