Noi
1149f2800d
Moved modules into the assembly itself to simplify development of further features and reduce complexity in building this project. Additionally, many small adjustments were made, including: - Add documentation to most public methods that had it missing - Minor style updates - Updated readme to reflect near-completion of this rewrite - Remove any last remaining references to old project name Kerobot - Update dependencies
17 lines
No EOL
725 B
C#
17 lines
No EOL
725 B
C#
namespace RegexBot.Modules.ModCommands.Commands;
|
|
class ConfReload : CommandConfig {
|
|
protected override string DefaultUsageMsg => null!;
|
|
|
|
// No configuration.
|
|
public ConfReload(ModCommands module, JObject config) : base(module, config) { }
|
|
|
|
// Usage: (command)
|
|
public override Task Invoke(SocketGuild g, SocketMessage msg) {
|
|
throw new NotImplementedException();
|
|
// bool status = await RegexBot.Config.ReloadServerConfig();
|
|
// string res;
|
|
// if (status) res = ":white_check_mark: Configuration reloaded with no issues. Check the console to verify.";
|
|
// else res = ":x: Reload failed. Check the console.";
|
|
// await msg.Channel.SendMessageAsync(res);
|
|
}
|
|
} |