From 42ef07a1b46da9758de5621a8a343773e2ee13e5 Mon Sep 17 00:00:00 2001 From: Hamza Ali Date: Mon, 14 Oct 2019 19:28:46 +0700 Subject: [PATCH] go: add help command and refactor commands.go --- GoBot/discord/config/translate.go | 6 ++++ GoBot/discord/discord.go | 1 + GoBot/discord/modules/commands.go | 53 ++++++++++++++++++++++++------- GoBot/discord/modules/help.go | 35 ++++++++++++++++++++ 4 files changed, 84 insertions(+), 11 deletions(-) create mode 100644 GoBot/discord/modules/help.go diff --git a/GoBot/discord/config/translate.go b/GoBot/discord/config/translate.go index 86a951b..b89c2c6 100644 --- a/GoBot/discord/config/translate.go +++ b/GoBot/discord/config/translate.go @@ -1,5 +1,10 @@ package config +//==Help Command== +const HelpTitle = "指令列表 Command List" +const HelpColour = 0x00E58D +const HelpDescription = "这个信息包含了所有指令的资料。\nThis message contains all the information about available commands." + //==Message Util== const UsageTitle = "使用方法 Command Usage" const UsageColour = 0xF00000 @@ -61,6 +66,7 @@ const EditAsUsage = "!editas <频道ID> <信息ID> <信息>\n!editas