1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-03 12:39:54 +03:00

Prefixes are now taken from a single file

This commit is contained in:
mctaylors 2022-12-06 17:43:01 +03:00
parent 1258496697
commit cec041f096
9 changed files with 65 additions and 52 deletions

View file

@ -1,4 +1,4 @@
using Humanizer;
using Humanizer;
namespace Boyfriend.Commands;
@ -12,7 +12,7 @@ public sealed class HelpCommand : ICommand {
foreach (var command in CommandProcessor.Commands)
toSend.Append(
$"\n`{prefix}{command.Aliases[0]}`: {Utils.GetMessage($"CommandDescription{command.Aliases[0].Titleize()}")}");
cmd.Reply(toSend.ToString(), ":page_facing_up: ");
cmd.Reply(toSend.ToString(), Prefixes.Help);
toSend.Clear();
return Task.CompletedTask;