示例#1
0
        internal override async Task Execute(CommandObjects CommandObject)
        {
            await CommandObject.Message.RespondAsync("Logging out...");

            Log.Info("Logging out...");

            await ConsoleExitEvent.Main(0).ConfigureAwait(false);
        }
示例#2
0
        internal override async Task Execute(CommandObjects CommandObject)
        {
            await CommandObject.Message.RespondAsync("Restarting...");

            Log.Info("Restarting...");

            await ConsoleExitEvent.Main(-1);
        }