Exemple #1
0
        internal static async Task Restart()
        {
            await Bot.ShutdownAllBots().ConfigureAwait(false);

            System.Diagnostics.Process.Start(ExecutablePath);
            Environment.Exit(0);
        }
Exemple #2
0
        internal static async Task Exit(int exitCode = 0)
        {
            await Bot.ShutdownAllBots().ConfigureAwait(false);

            Environment.Exit(exitCode);
        }