/[sudobot]/trunk/src/utils/Help.ts
ViewVC logotype

Diff of /trunk/src/utils/Help.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 43 by rakin, Mon Jul 29 17:28:20 2024 UTC revision 45 by rakin, Mon Jul 29 17:28:20 2024 UTC
# Line 3  const MessageEmbed = require("../src/Mes Line 3  const MessageEmbed = require("../src/Mes
3  const { escapeRegex } = require("../src/util");  const { escapeRegex } = require("../src/util");
4    
5  module.exports = {  module.exports = {
6      version: "1.7.0",      version: "1.8.0",
7      commands: [      commands: [
8          {          {
9              name: 'addsnippet',              name: 'addsnippet',
# Line 86  module.exports = { Line 86  module.exports = {
86              notes: null              notes: null
87          },          },
88          {          {
89                name: 'expire',
90                shortBrief: "Echo (re-send) a message and delete it after the given time.",
91                description: "Re-send a message from the bot and delete it automatically after the given time interval.",
92                structure: "<timeInterval> <content> [channelMention]",
93                example: "`%%echo 25m Something\nVery Cool`\n`%%echo 1h Something\nVery Cool #general`",
94                notes: null
95            },
96            {
97                name: 'expiresc',
98                shortBrief: "Schedule a message and delete it after the given time.",
99                description: "Schedule a message from the bot and delete it automatically after the given time interval.",
100                structure: "<scheduleTimeInterval> <expireTimeInterval> <content> [channelMention]",
101                example: "`%%echo 25m 5h Something\nVery Cool`\n`%%echo 1h 7d Something\nVery Cool #general`",
102                notes: null
103            },
104            {
105              name: 'general-role',              name: 'general-role',
106              shortBrief: "Set the general role.",              shortBrief: "Set the general role.",
107              description: null,              description: null,
# Line 239  module.exports = { Line 255  module.exports = {
255              notes: null              notes: null
256          },          },
257          {          {
258                name: 'schedule',
259                shortBrief: "Echo (re-send) a message after the given time.",
260                description: "Re-send a message from the bot automatically after the given time interval.",
261                structure: "<timeInterval> <content> [channelMention]",
262                example: "`%%echo 25m Something\nVery Cool`\n`%%echo 1h Something\nVery Cool #general`",
263                notes: null
264            },
265            {
266              name: 'setconfig',              name: 'setconfig',
267              shortBrief: "Change the bot configuration keys.",              shortBrief: "Change the bot configuration keys.",
268              description: null,              description: null,
# Line 356  module.exports = { Line 380  module.exports = {
380              await msg.reply({              await msg.reply({
381                  embeds: [                  embeds: [
382                      new MessageEmbed()                      new MessageEmbed()
383                      .setDescription("The command list. Run `" + app.config.get('prefix') + "help <commandName>` for more information about a specific command.\n" + await this.render())                      .setDescription("The command list.\n\n`<...>` means required argument, `[...]` means optional argument.\n\nRun `" + app.config.get('prefix') + "help <commandName>` for more information about a specific command.\n" + await this.render())
384                      .setTitle('Help')                      .setTitle('Help')
385                  ],                  ],
386              });              });
# Line 414  module.exports = { Line 438  module.exports = {
438              embeds: [              embeds: [
439                  new MessageEmbed()                  new MessageEmbed()
440                  .setTitle(`${app.config.get('prefix')}${cmd.name}`)                  .setTitle(`${app.config.get('prefix')}${cmd.name}`)
441                  .setDescription(cmd.description !== null ? cmd.description : cmd.shortBrief)                  .setDescription("`<...>` means required argument, `[...]` means optional argument.\n\n" + (cmd.description !== null ? cmd.description : cmd.shortBrief))
442                  .addFields(fields)                  .addFields(fields)
443              ]              ]
444          });          });

Legend:
Removed from v.43  
changed lines
  Added in v.45

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26