Help.java 文件源码

java
阅读 50 收藏 0 点赞 0 评论 0

项目:Hobbes-v1 作者:
private void sendCommandHelp(Input input, Output output) {
  SecureRandom r = new SecureRandom();
  Command command = CommandUtils.getCommand(input.getArgument(0));
  Message commandHelpEmbed = createEmbed(command.getSettings().getEmbedColor(),
      "Help: " + command.getSettings().getName(),
      "**Category:** `" + command.getSettings().getCategory() + "`\n**Usage:** `" + command
          .getSettings()
          .getHelp() + "`\n**Description:** `" + command
          .getSettings().getDescription() + "`");
  if (input.isFromType(ChannelType.TEXT)) {
    output.sendMessage("Sent you a DM. " + emojis[r.nextInt(emojis.length)]);
    output.sendPrivateMessage(commandHelpEmbed);
  } else {
    output.sendMessage(commandHelpEmbed);
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号