/[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 107 by rakin, Mon Jul 29 17:28:37 2024 UTC revision 272 by rakin, Mon Jul 29 17:29:18 2024 UTC
# Line 52  export default <CommandHelpData[]> [ Line 52  export default <CommandHelpData[]> [
52          legacyCommand: true          legacyCommand: true
53      },      },
54      {      {
55            name: 'antijoin',
56            shortBrief: "Enable the AntiJoin shield.",
57            description: "Enables the AntiJoin shield.\nWhile AntiJoin is active, users will not be able to join the server (they will be kicked). This is useful when handling a raid.",
58            structure: "",
59            example: "`%%antijoin",
60            notes: null,
61            slashCommand: true,
62            legacyCommand: true
63        },
64        {
65          name: 'appeal',          name: 'appeal',
66          shortBrief: "Send a message to staff members about a punishment appeal.",          shortBrief: "Send a message to staff members about a punishment appeal.",
67          description: null,          description: null,
# Line 99  export default <CommandHelpData[]> [ Line 109  export default <CommandHelpData[]> [
109          legacyCommand: true          legacyCommand: true
110      },      },
111      {      {
         name: 'bean',  
         shortBrief: "Bean someone in this server.",  
         description: "Bean someone. It doesn't do anything except pretending.",  
         structure: "<UserID|UserTag|Mention> [Reason]",  
         example: "`%%bean 385753607325075320`\n`%%bean @Someone You are spamming a lot`",  
         notes: null,  
         slashCommand: true,  
         legacyCommand: true  
     },  
     {  
112          name: 'cat',          name: 'cat',
113          shortBrief: "Get a random kitty picture.",          shortBrief: "Get a random kitty picture.",
114          description: "Fetches a random cat picture from `thecatapi.com` API.",          description: "Fetches a random cat picture from `thecatapi.com` API.",
# Line 129  export default <CommandHelpData[]> [ Line 129  export default <CommandHelpData[]> [
129          legacyCommand: true          legacyCommand: true
130      },      },
131      {      {
132            name: 'config',
133            shortBrief: "View or change the config options.",
134            description: "Configure the bot settings. This command is for advanced users.\nIf the user only gives one argument (setting key), then the value of the setting key will be shown. Otherwise the setting key will be modified with the given parameters.",
135            structure: "<key> [value]",
136            example: "`%%config spam_filter.enabled false`\n`%%config prefix -`",
137            notes: null,
138            slashCommand: true,
139            legacyCommand: true
140        },
141        {
142          name: 'delqueue',          name: 'delqueue',
143          shortBrief: "Delete a queue job.",          shortBrief: "Delete a queue job.",
144          description: "Delete a queued command by its ID.",          description: "Delete a queued command by its ID.",
# Line 169  export default <CommandHelpData[]> [ Line 179  export default <CommandHelpData[]> [
179          legacyCommand: true          legacyCommand: true
180      },      },
181      {      {
182            name: 'embed',
183            shortBrief: "Build, send and make schemas of embeds!",
184            description: "Build, send and make schemas of embeds. Schemas are special kind of text which can be used in various commands to represent an embed.\n**Subcommands**:\n\n`send` - Build and send an embed from the given input.\n`schema` - Builds an embed and returns back the JSON schema of the embed so that you can use it in other places!\n`build` - Builds an embed from a JSON schema.",
185            structure: "<subcommand> <...args>",
186            example: "`/embed send title:Hello world description:This is an embed, awesome!`\n`/embed schema title:Hello world description:This is an embed, awesome!`\n`/embed build json_schema:embed:{\"title\": \"Hello world\", \"description\": \"This is an embed, awesome!\", \"fields\": []}`",
187            notes: null,
188            slashCommand: true,
189            legacyCommand: false
190        },
191        {
192          name: 'emoji',          name: 'emoji',
193          shortBrief: "Get info about an emoji. Must be guild (server) specific emoji.",          shortBrief: "Get info about an emoji. Must be guild (server) specific emoji.",
194          description: null,          description: null,
# Line 179  export default <CommandHelpData[]> [ Line 199  export default <CommandHelpData[]> [
199          legacyCommand: true          legacyCommand: true
200      },      },
201      {      {
202            name: 'eval',
203            shortBrief: "Execute raw Javascript code.\n*This command is owner-only*.",
204            description: null,
205            structure: "<code>",
206            example: "`%%eval console.log(\"Hello world!\")`",
207            notes: null,
208            slashCommand: true,
209            legacyCommand: true
210        },
211        {
212          name: 'expire',          name: 'expire',
213          shortBrief: "Echo (re-send) a message and delete it after the given time.",          shortBrief: "Echo (re-send) a message and delete it after the given time.",
214          description: "Re-send a message from the bot and delete it automatically after the given time interval.",          description: "Re-send a message from the bot and delete it automatically after the given time interval.",
# Line 199  export default <CommandHelpData[]> [ Line 229  export default <CommandHelpData[]> [
229          legacyCommand: true          legacyCommand: true
230      },      },
231      {      {
232            name: 'hash',
233            shortBrief: "Generate a hash of the given text input.",
234            description: null,
235            structure: "<algorithm> <input>",
236            example: "`%%hash sha1 abc`",
237            notes: null,
238            slashCommand: true,
239            legacyCommand: true
240        },
241        {
242          name: 'help',          name: 'help',
243          shortBrief: "Show this help and exit.",          shortBrief: "Show this help and exit.",
244          description: null,          description: null,
# Line 262  export default <CommandHelpData[]> [ Line 302  export default <CommandHelpData[]> [
302          name: 'lock',          name: 'lock',
303          shortBrief: "Lock a specific channel.",          shortBrief: "Lock a specific channel.",
304          description: "Makes the given channel read-only for the general members. If no channel is present, the current channel will be locked.",          description: "Makes the given channel read-only for the general members. If no channel is present, the current channel will be locked.",
305          structure: "[ChannelID|ChannelMention] [...options]",          structure: "[ChannelID|ChannelMention]",
306          example: "`%%lock 385753607325075320`\n`%%lock #general`\n`%%lock`",          example: "`%%lock 385753607325075320`\n`%%lock #general`\n`%%lock`",
307          notes: null,          notes: null,
         options: {  
             "--no-send": "Do not send a confirmation message to the locked channel",  
         },  
308          slashCommand: true,          slashCommand: true,
309          legacyCommand: true          legacyCommand: true
310      },      },
311      {      {
312          name: 'lockall',          name: 'lockall',
313          shortBrief: "Lock all the channels given in the configuration.",          shortBrief: "Lock all given channels, in-bulk.",
314          description: "Makes the given channels read-only for the general members.",          description: "Makes the given channels read-only for the general members.",
315          structure: "<...ChannelMention|ChannelIDs> [--raid] [-r=ROLEMENTION|ROLEID]",          structure: "<...ChannelMention|ChannelIDs> [--raid]",
316          example: "`%%lockall 2572562578247841786\n`%%lockall 2572562578247841786 2572562578247841782 2572562578247841783`\n`%%lockall 2572562578247841786 2572562578247841785 -r @General`",          example: "`%%lockall 2572562578247841786\n`%%lockall 2572562578247841786 2572562578247841782 2572562578247841783`\n`%%lockall 2572562578247841786 2572562578247841785`",
317          notes: null,          notes: null,
318          options: {          options: {
319              "--raid": "Lock all raid protected channels",              "--raid": "Lock all raid protected channels",
# Line 369  export default <CommandHelpData[]> [ Line 406  export default <CommandHelpData[]> [
406      },      },
407      {      {
408          name: 'profile',          name: 'profile',
409          shortBrief: 'Show server profile',          shortBrief: 'Show the server profile.',
410          description: null,          description: null,
411          structure: '[UserID|UserTag|UserMention]',          structure: '[UserID|UserTag|UserMention]',
412          example: '`%%profile`\n`%%profile @Someone`',          example: '`%%profile`\n`%%profile @Someone`',
# Line 428  export default <CommandHelpData[]> [ Line 465  export default <CommandHelpData[]> [
465          legacyCommand: true          legacyCommand: true
466      },      },
467      {      {
468            name: 'shot',
469            shortBrief: "Give a shot to a user.",
470            description: "Give a shot to a user. This command actually doesn't do anything.",
471            structure: "<UserID|UserTag|Mention> [Reason]",
472            example: "`%%shot 385753607325075320`\n`%%shot @Someone You are spamming a lot`",
473            notes: null,
474            slashCommand: true,
475            legacyCommand: true
476        },
477        {
478          name: 'softban',          name: 'softban',
479          shortBrief: "Softban a user.",          shortBrief: "Softban a user.",
480          description: "A softban means banning and unbanning a user immediately so that their messages gets deleted.",          description: "A softban means banning and unbanning a user immediately so that their messages gets deleted.",
# Line 481  export default <CommandHelpData[]> [ Line 528  export default <CommandHelpData[]> [
528          name: 'unlock',          name: 'unlock',
529          shortBrief: "Unlock a specific channel.",          shortBrief: "Unlock a specific channel.",
530          description: "Makes the given channel writable for the general members. If no channel is present, the current channel is unlocked.",          description: "Makes the given channel writable for the general members. If no channel is present, the current channel is unlocked.",
531          structure: "[ChannelID|ChannelMention] [...options]",          structure: "[ChannelID|ChannelMention]",
532          example: "`%%unlock 385753607325075320`\n`%%unlock #general`\n`%%unlock`",          example: "`%%unlock 385753607325075320`\n`%%unlock #general`\n`%%unlock`",
533          notes: null,          notes: null,
         options: {  
             "--no-send": "Do not send a confirmation message to the locked channel",  
         },  
534          slashCommand: true,          slashCommand: true,
535          legacyCommand: true          legacyCommand: true
536      },      },
537      {      {
538          name: 'unlockall',          name: 'unlockall',
539          shortBrief: "Unlock all the channels given in the configuration.",          shortBrief: "Unlock all given channels, in bulk.",
540          description: "<...ChannelMention|ChannelIDs> [--raid] [-r=ROLEMENTION|ROLEID]",          description: "<...ChannelMention|ChannelIDs> [--raid]",
541          structure: "[...options]",          structure: "[...options]",
542          example: "`%%unlockall --raid\n`%%unlockall 348764381911364631 634894637314679163795`",          example: "`%%unlockall --raid\n`%%unlockall 348764381911364631 634894637314679163795`",
543          notes: null,          notes: null,
# Line 539  export default <CommandHelpData[]> [ Line 583  export default <CommandHelpData[]> [
583              "view": "View information about a warning by ID"              "view": "View information about a warning by ID"
584          }          }
585      },      },
586        {
587            name: 'welcomer',
588            shortBrief: "Configure the welcomer.",
589            description: "Change the settings of the welcomer.",
590            structure: "<option(s)> [...args]",
591            example: "`%%welcomer --enable`",
592            notes: null,
593            slashCommand: true,
594            legacyCommand: true,
595            options: {
596                "--enable": "Enables the welcomer",
597                "--disable": "Disables the welcomer",
598                "--toggle": "Toggles the welcomer",
599                "--msg, --message, --custom": "Set custom welcome message. The welcome message as an argument is required.",
600                "--rm-msg, --remove-message": "Remove the custom welcome message.",
601                "--rand, --randomize": "Toggle random welcome messages.",
602                "--preview": "Preview the welcome message embed.",
603            }
604        },
605  ]  ]

Legend:
Removed from v.107  
changed lines
  Added in v.272

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26