-
Notifications
You must be signed in to change notification settings - Fork 38
/
command-format.js
34 lines (31 loc) · 1.17 KB
/
command-format.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const Discord = require("discord.js");
//Import Packages
module.exports = {
name: "nameOfTheCommand",
//Name Of The Command
aliases: ["alias1", "alias2", "alias3"],
//Aliases For Command.
cooldowns: 1000, //1 second
//Cooldown For The Command [Milliseconds]
description: "This Command Tells About You",
//Description Of The Command [The Purpose Etc...]
usage: "<user>",
//Usage For Command. [like ?nameOfTheCommand <user> <reason>]
toggleOff: false,
//Disable The Command If Emergency. [true = off | false = on]
developersOnly: false,
//If Command Is Only For Bot Owners. [true = yes | false = no]
/*
To Make Yourself Developer, Go Ahead to
botconfig/main.json, set the ids in it.
*/
userpermissions: ["SEND_MESSAGES", "VIEW_CHANNEL"],
//Permissions Required For The Author To Use The CMD.
botpermissions: ["ADMINISTRATOR"],
//Permissions Required For The Bot To Run The CMD.
run: async (client, message, args) => {
const member = message.mentions.members.first();
if (!member) return message.reply("Provide Some User To Tell About...");
message.reply(`About ${member}: \`He/She Looks Cool!\``);
},
};