BotSharp/tests/BotSharp.Plugin.PizzaBot/PizzaBotPlugin.cs
2023-08-30 17:40:45 -05:00

20 lines
636 B
C#

using BotSharp.Abstraction.Agents;
using BotSharp.Plugin.PizzaBot.Hooks;
namespace BotSharp.Plugin.PizzaBot;
public class PizzaBotPlugin : IBotSharpPlugin
{
public void RegisterDI(IServiceCollection services, IConfiguration config)
{
// Register callback function
services.AddScoped<IFunctionCallback, GetPizzaTypesFn>();
services.AddScoped<IFunctionCallback, GetPizzaPricesFn>();
services.AddScoped<IFunctionCallback, MakeOrderFn>();
services.AddScoped<IFunctionCallback, OrderFoundFn>();
// Register hooks
services.AddScoped<IAgentHook, PizzaBotAgentHook>();
}
}