Fixed plugin refresh command and added new method for executing tasks without return type in ConsoleUtilities
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using PluginManager;
|
||||
using Spectre.Console;
|
||||
|
||||
@@ -8,13 +7,14 @@ public static class Installer
|
||||
{
|
||||
public static void GenerateStartupConfig()
|
||||
{
|
||||
AnsiConsole.WriteLine("Welcome to the [bold]SethBot[/] installer !");
|
||||
AnsiConsole.WriteLine("First, we need to configure the bot. Don't worry, it will be quick !");
|
||||
|
||||
var token = AnsiConsole.Ask<string>("Please enter the bot token :");
|
||||
var prefix = AnsiConsole.Ask<string>("Please enter the bot prefix :");
|
||||
var serverId = AnsiConsole.Ask<string>("Please enter the Server ID :");
|
||||
AnsiConsole.MarkupLine("Welcome to the [bold]SethBot[/] installer !");
|
||||
AnsiConsole.MarkupLine("First, we need to configure the bot. Don't worry, it will be quick !");
|
||||
|
||||
var token = AnsiConsole.Ask<string>("Please enter the bot [yellow]token[/]:");
|
||||
var prefix = AnsiConsole.Ask<string>("Please enter the bot [yellow]prefix[/]:");
|
||||
var serverId = AnsiConsole.Ask<string>("Please enter the [yellow]Server ID[/]:");
|
||||
|
||||
if (string.IsNullOrWhiteSpace(serverId)) serverId = "NULL";
|
||||
Config.AppSettings.Add("token", token);
|
||||
Config.AppSettings.Add("prefix", prefix);
|
||||
Config.AppSettings.Add("ServerID", serverId);
|
||||
|
||||
Reference in New Issue
Block a user