Discord Bot web UI first preview
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user