/[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 26 by rakin, Mon Jul 29 17:28:16 2024 UTC revision 41 by rakin, Mon Jul 29 17:28:19 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.3.0-beta",      version: "1.6.4",
7      commands: [      commands: [
8          {          {
9              name: 'addsnippet',              name: 'addsnippet',
# Line 14  module.exports = { Line 14  module.exports = {
14              notes: null              notes: null
15          },          },
16          {          {
17                name: 'afk',
18                shortBrief: "Keeps track of your mentions and tells other users that you're AFK.",
19                description: null,
20                structure: "[Reason]",
21                example: "`%%afk`\n`%%afk Having dinner`",
22                notes: null
23            },
24            {
25              name: 'announce',              name: 'announce',
26              shortBrief: "Announce something in the given channel.",              shortBrief: "Announce something in the given channel.",
27              description: "Announce something in the given channel. The channel should be set in the configuration.",              description: "Announce something in the given channel. The channel should be set in the configuration.",
# Line 24  module.exports = { Line 32  module.exports = {
32          {          {
33              name: 'ban',              name: 'ban',
34              shortBrief: "Ban someone in this server.",              shortBrief: "Ban someone in this server.",
35              description: null,              description: "Ban a user. `-d` is the number days old messages to  delete. It must be in range 0-7. If `-d` is passed then an argument after it is required.",
36              structure: "<UserID|Mention> [Reason]",              structure: "<UserID|Mention> [-d=DAYS] [Reason]",
37              example: "`%%ban 385753607325075320`\n`%%ban @Someone You are spamming a lot`",              example: "`%%ban 385753607325075320`\n`%%ban @Someone You are spamming a lot`\n`%%ban @Someone -d 5`\n`%%ban 385753607325075320 -d 5 You are spamming a lot`",
38              notes: null              notes: null
39          },          },
40          {          {
# Line 134  module.exports = { Line 142  module.exports = {
142              notes: null,              notes: null,
143              options: {              options: {
144                  "--no-send": "Do not send a confirmation message to the locked channel",                  "--no-send": "Do not send a confirmation message to the locked channel",
                 "--everyone": "Lock the channels for @everyone rather than the general role",  
145              }              }
146          },          },
147          {          {
# Line 146  module.exports = { Line 153  module.exports = {
153              notes: null,              notes: null,
154              options: {              options: {
155                  "--no-send": "Do not send a confirmation message to the locked channel",                  "--no-send": "Do not send a confirmation message to the locked channel",
                 "--everyone": "Lock the channels for @everyone rather than the general role",  
156              }              }
157          },          },
158          {          {
# Line 241  module.exports = { Line 247  module.exports = {
247              notes: null              notes: null
248          },          },
249          {          {
250                name: 'send',
251                shortBrief: "Send a DM to a user.",
252                description: null,
253                structure: "<UserID|Mention> <content>",
254                example: "`%%send 278358918549759428 Hello world`\n`%%send @Someone Hello world`",
255                notes: null
256            },
257            {
258              name: 'spamfilter',              name: 'spamfilter',
259              shortBrief: "Change the spam filter configuration keys.",              shortBrief: "Change the spam filter configuration keys.",
260              description: null,              description: null,
# Line 249  module.exports = { Line 263  module.exports = {
263              notes: null              notes: null
264          },          },
265          {          {
266                name: 'stats',
267                shortBrief: "Show the server stats.",
268                description: null,
269                structure: "",
270                example: "`%%stats",
271                notes: null
272            },
273            {
274              name: 'unban',              name: 'unban',
275              shortBrief: "Unban a user from this server.",              shortBrief: "Unban a user from this server.",
276              description: null,              description: null,
# Line 265  module.exports = { Line 287  module.exports = {
287              notes: null,              notes: null,
288              options: {              options: {
289                  "--no-send": "Do not send a confirmation message to the locked channel",                  "--no-send": "Do not send a confirmation message to the locked channel",
                 "--everyone": "Unlock the channels for @everyone rather than the general role",  
290              }              }
291          },          },
292          {          {
# Line 277  module.exports = { Line 298  module.exports = {
298              notes: null,              notes: null,
299              options: {              options: {
300                  "--no-send": "Do not send a confirmation message to the locked channel",                  "--no-send": "Do not send a confirmation message to the locked channel",
                 "--everyone": "Lock the channels for @everyone rather than the general role",  
301                  "--raid": "Unlock all Raid-locked channels"                  "--raid": "Unlock all Raid-locked channels"
302              }              }
303          },          },
# Line 333  module.exports = { Line 353  module.exports = {
353      },      },
354      async handle(msg, cm) {      async handle(msg, cm) {
355          if (typeof cm.args[0] === 'undefined') {          if (typeof cm.args[0] === 'undefined') {
             // await msg.reply({  
             //     embeds: [  
             //         new MessageEmbed()  
             //         .setColor('#f14a60')  
             //         .setDescription(`This command requires at least one argument.`)  
             //     ]  
             // });  
   
356              await msg.reply({              await msg.reply({
357                  embeds: [                  embeds: [
358                      new MessageEmbed()                      new MessageEmbed()

Legend:
Removed from v.26  
changed lines
  Added in v.41

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26