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

20 lines
523 B
C#
Raw Normal View History

2023-09-20 10:59:27 +00:00
using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Plugin.PizzaBot.Functions;
public class MakePaymentFn : IFunctionCallback
{
public string Name => "make_payment";
public async Task<bool> Execute(RoleDialogModel message)
{
2023-10-23 00:31:49 +00:00
message.Content = "Payment proceed successfully. Thank you for your business. Have a great day!";
message.Data = new
2023-09-20 10:59:27 +00:00
{
Transaction = Guid.NewGuid().ToString(),
Status = "Success"
};
return true;
}
}