21 lines
680 B
C#
21 lines
680 B
C#
using DiscordBotCore.Interfaces;
|
|
using DiscordBotCore.Others;
|
|
using DiscordBotCore.Others.Actions;
|
|
|
|
namespace LevelingSystem;
|
|
|
|
public class ReloadAction: ICommandAction
|
|
{
|
|
public string ActionName => "LevelingSystemReload";
|
|
public string? Description => "Reloads the Leveling System config file";
|
|
public string? Usage => "LevelingSystemReload";
|
|
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
|
|
|
public IEnumerable<InternalActionOption> ListOfOptions => [];
|
|
|
|
public async Task Execute(string[]? args)
|
|
{
|
|
Variables.GlobalSettings = await JsonManager.ConvertFromJson<Settings>(Variables.DataFolder + "Settings.txt");
|
|
}
|
|
}
|