BotSharp/tests/BotSharp.Plugin.PizzaBot/Functions/GetBakingTimeFn.cs

15 lines
359 B
C#
Raw Normal View History

2023-08-30 22:40:45 +00:00
using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Plugin.PizzaBot.Functions;
2023-09-06 03:19:36 +00:00
public class GetBakingTimeFn : IFunctionCallback
2023-08-30 22:40:45 +00:00
{
2023-09-18 08:35:02 +00:00
public string Name => "get_cooking_remaining_time";
2023-08-30 22:40:45 +00:00
public async Task<bool> Execute(RoleDialogModel message)
{
2023-09-06 03:19:36 +00:00
message.ExecutionResult = "15 minutes remaining";
2023-08-30 22:40:45 +00:00
return true;
}
}