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

@@ -51,6 +51,11 @@ public static class Config
_dictionary = PrivateReadConfig(file).GetAwaiter().GetResult();
}
public async void Save()
{
await Functions.SaveToJsonFile("./Data/Resources/config.json", _dictionary);
}
public virtual void Add(TKey key, TValue value)
{
_dictionary.Add(key, value);

View File

@@ -66,6 +66,8 @@ public class PluginLoader
/// </summary>
public static List<DBSlashCommand>? SlashCommands { get; set; }
public static int PluginsLoaded { get => Commands!.Count + Events!.Count + SlashCommands!.Count;}
/// <summary>
/// The main mathod that is called to load all events
/// </summary>