A new help command :)
This commit is contained in:
parent
19f7bc920d
commit
ff64355163
2 changed files with 6 additions and 6 deletions
|
|
@ -62,12 +62,12 @@ public class HelpCommand implements Command {
|
||||||
(event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) {
|
(event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) {
|
||||||
String name = labels()[0];
|
String name = labels()[0];
|
||||||
StringBuilder b = new StringBuilder();
|
StringBuilder b = new StringBuilder();
|
||||||
b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(event.getMessageEditor().getTerm(cmd.description())).append("\n");
|
b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(" ").append(event.getMessageEditor().getTerm(cmd.description())).append("\n");
|
||||||
if (cmd.usage() != null) {
|
if (cmd.usage() != null) {
|
||||||
b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n");
|
b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(" ").append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n");
|
||||||
}
|
}
|
||||||
if (cmd.example() != null) {
|
if (cmd.example() != null) {
|
||||||
b.append(event.getMessageEditor().getTerm("commands.general.help.example")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(cmd.example());
|
b.append(event.getMessageEditor().getTerm("commands.general.help.example")).append(" ").append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.example());
|
||||||
}
|
}
|
||||||
event.getChannel().sendMessage(event.getMessageEditor().getMessage(
|
event.getChannel().sendMessage(event.getMessageEditor().getMessage(
|
||||||
MessageEditor.MessageType.INFO)
|
MessageEditor.MessageType.INFO)
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@ commands.general.equals.string.first = First string\:
|
||||||
commands.general.equals.string.second = Second string\:
|
commands.general.equals.string.second = Second string\:
|
||||||
commands.general.equals.string.result = Result\:
|
commands.general.equals.string.result = Result\:
|
||||||
commands.general.equals.help.description = Checks if two strings are the same.
|
commands.general.equals.help.description = Checks if two strings are the same.
|
||||||
commands.general.help.description = **Description: **
|
commands.general.help.description = **Description:**
|
||||||
commands.general.help.usage = **Usage\: **
|
commands.general.help.usage = **Usage\:**
|
||||||
commands.general.help.example = **Example: **
|
commands.general.help.example = **Example:**
|
||||||
commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\!
|
commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\!
|
||||||
commands.general.help.help.description = Shows each command and explains its usage.
|
commands.general.help.help.description = Shows each command and explains its usage.
|
||||||
commands.general.help.help.label = [CommandName]
|
commands.general.help.help.label = [CommandName]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue