BotSharp/tests/BotSharp.Plugin.PizzaBot/PizzaBotPlugin.cs

22 lines
769 B
C#
Raw Normal View History

2023-08-30 22:40:45 +00:00
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>();
2023-09-06 03:19:36 +00:00
services.AddScoped<IFunctionCallback, PlaceOrderFn>();
2023-08-30 22:40:45 +00:00
services.AddScoped<IFunctionCallback, OrderFoundFn>();
2023-09-19 12:17:50 +00:00
services.AddScoped<IFunctionCallback, GetDeliveryTimeFn>();
2023-09-20 10:59:27 +00:00
services.AddScoped<IFunctionCallback, MakePaymentFn>();
2023-08-30 22:40:45 +00:00
// Register hooks
services.AddScoped<IAgentHook, PizzaBotAgentHook>();
}
}