/[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 35 by rakin, Mon Jul 29 17:28:18 2024 UTC revision 37 by rakin, Mon Jul 29 17:28:18 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.6.2",      version: "1.6.3",
7      commands: [      commands: [
8          {          {
9              name: 'addsnippet',              name: 'addsnippet',
# Line 32  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 357  module.exports = { Line 357  module.exports = {
357      },      },
358      async handle(msg, cm) {      async handle(msg, cm) {
359          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.`)  
             //     ]  
             // });  
   
360              await msg.reply({              await msg.reply({
361                  embeds: [                  embeds: [
362                      new MessageEmbed()                      new MessageEmbed()

Legend:
Removed from v.35  
changed lines
  Added in v.37

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26