Discord Bot web UI first preview

This commit is contained in:
2023-04-08 13:18:25 +03:00
parent 0a2dff0c6d
commit 810a527cc1
86 changed files with 74906 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using PluginManager.Interfaces;
namespace DiscordBotUI.Models.Bot
{
public class BotModel
{
public string BotName { get; set; }
public string StartStatus { get; set; }
public int PluginsLoaded { get; set; }
public List<DBCommand> Commands { get; set; }
public List<DBEvent> Events { get; set; }
public List<DBSlashCommand> SlashCommands { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace DiscordBotUI.Models;
public class ErrorViewModel
{
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}

View File

@@ -0,0 +1,8 @@
namespace DiscordBotUI.Models.Home
{
public class IndexModel
{
public string ServerID { get; set; }
public string BotPrefix { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using Discord;
using Discord.WebSocket;
namespace DiscordBotUI.Models.Home;
public class SettingsModel
{
public string BotToken { get; set; }
public string BotPrefix { get; set; }
public string ServerID { get; set; }
}