Example #1
0
        private static async Task <Boot> StartNoGUI()
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine("Discord BOT\n\nCreated by: Wizzy\nDiscord: Wizzy#9181\nCommands:");
            Console.WriteLine(
                "/lp | /loadplugins -> load all plugins\n" +
                "/sd | /shutdown -> close connectong to the server (stop bot)\n" +
                "/tk | /token -> Display the token that your bot uses");
            Console.WriteLine("\n\n");
            Console.ForegroundColor = ConsoleColor.White;

            string token =
                Functions.readCodeFromFile(Path.Combine(Functions.dataFolder, "DiscordBotCore.data"), "BOT_TOKEN",
                                           '\t');
            string prefix = Functions.readCodeFromFile(Path.Combine(Functions.dataFolder, "DiscordBotCore.data"),
                                                       "BOT_PREFIX",
                                                       '\t');
            var discordbooter = new Boot(token, prefix);

            await discordbooter.AwakeNoGUI();

            return(discordbooter);
        }