BotSharp/src/Plugins/BotSharp.Plugin.Dashboard/DashboardPlugin.cs

27 lines
1 KiB
C#
Raw Normal View History

2024-01-29 04:18:40 +00:00
using BotSharp.Abstraction.Conversations;
using BotSharp.Abstraction.Plugins;
using BotSharp.Abstraction.Plugins.Models;
using BotSharp.Abstraction.Settings;
using BotSharp.Abstraction.Statistics.Settings;
using BotSharp.Plugin.Dashboard.Hooks;
namespace BotSharp.Plugin.Dashboard;
public class DashboardPlugin : IBotSharpPlugin
{
public string Id => "d42a0c21-b461-44f6-ada2-499510d260af";
public string Name => "Dashboard";
2024-01-29 04:20:37 +00:00
public string Description => "Dashboard that offers real-time statistics on model performance, usage trends, and user feedback";
2024-01-31 15:15:41 +00:00
public string IconUrl => "https://cdn0.iconfinder.com/data/icons/octicons/1024/dashboard-512.png";
2024-01-29 04:18:40 +00:00
public void RegisterDI(IServiceCollection services, IConfiguration config)
{
services.AddScoped<IConversationHook, StatsConversationHook>();
}
public bool AttachMenu(List<PluginMenuDef> menu)
{
2024-02-06 20:42:35 +00:00
menu.Add(new PluginMenuDef("Dashboard", link: "page/dashboard", icon: "bx bx-home-circle", weight: 1));
2024-01-29 04:18:40 +00:00
return true;
}
}