diff --git a/NadekoBot/Commands/HelpCommand.cs b/NadekoBot/Commands/HelpCommand.cs index c4b34273..1f97946a 100644 --- a/NadekoBot/Commands/HelpCommand.cs +++ b/NadekoBot/Commands/HelpCommand.cs @@ -39,7 +39,7 @@ namespace NadekoBot foreach (var com in client.Commands().AllCommands) { if (com.Category != lastCategory) { helpstr += "\n### " + com.Category + " \n"; - helpstr += "Command [alias] | Description | Usage\n"; + helpstr += "Command and aliases | Description | Usage\n"; helpstr += "----------------|--------------|-------\n"; lastCategory = com.Category; } @@ -66,7 +66,7 @@ namespace NadekoBot { var str = "`" + com.Text + "`"; foreach (var a in com.Aliases) - str += " [" + a + " ]"; + str += ", `" + a + "`"; str += " **Description:** " + com.Description + "\n"; return str; } diff --git a/NadekoBot/Modules/Conversations.cs b/NadekoBot/Modules/Conversations.cs index f68e1975..d4c6359c 100644 --- a/NadekoBot/Modules/Conversations.cs +++ b/NadekoBot/Modules/Conversations.cs @@ -224,7 +224,7 @@ namespace NadekoBot.Modules } }); - CreateCommand(cgb, "are you real") + cgb.CreateCommand("are you real") .Description("Useless.") .Do(async e => { @@ -236,13 +236,13 @@ namespace NadekoBot.Modules .Alias(new string[] { "!", "?" }) .Do(SayYes()); - CreateCommand(cgb, "draw") + cgb.CreateCommand("draw") .Description("Nadeko instructs you to type $draw. Gambling functions start with $") .Do(async e => { await e.Send("Sorry, I don't gamble, type $draw for that function."); }); - CreateCommand(cgb, "fire") + cgb.CreateCommand("fire") .Description("Shows a unicode fire message. Optional parameter [x] tells her how many times to repeat the fire.\n**Usage**: @NadekoBot fire [x]") .Parameter("times", ParameterType.Optional) .Do(async e => @@ -296,7 +296,7 @@ namespace NadekoBot.Modules } }); - AliasCommand(CreateCommand(cgb, "save"), "s") + cgb.CreateCommand("save") .Description("Saves something for the owner in a file.") .Parameter("all", ParameterType.Unparsed) .Do(async e => diff --git a/NadekoBot/NadekoBot.cs b/NadekoBot/NadekoBot.cs index 5f101734..89b3cfd7 100644 --- a/NadekoBot/NadekoBot.cs +++ b/NadekoBot/NadekoBot.cs @@ -9,6 +9,7 @@ using Discord.Modules; using Discord.Audio; using System.Threading.Tasks; using System.Timers; +using System.Linq; namespace NadekoBot { @@ -101,7 +102,12 @@ namespace NadekoBot client.ExecuteAndWait(async () => { await client.Connect(c.Username, c.Password); - Console.WriteLine("Connected!"); + Console.WriteLine("Logged in as: " + client.CurrentUser.Name); + Console.WriteLine("Bot id: " + client.CurrentUser.Id); + Console.WriteLine("Servers: " + client.Servers.Count()); + Console.WriteLine("Channels: " + client.Servers.Sum(s=>s.AllChannels.Count())); + Console.WriteLine("Discord.Net version: " + DiscordConfig.LibVersion); + Console.WriteLine("-------------------------"); }); Console.WriteLine("Exiting..."); Console.ReadKey();