-
Notifications
You must be signed in to change notification settings - Fork 59
/
basecmd.txt
27 lines (22 loc) · 1.51 KB
/
basecmd.txt
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
exports.run = async (client, message, args, level) => {
try {
// Put code here.
} catch (err) {
// This tells a user if something broke with the command, and prompts them to send the error log to a developer.
message.channel.send(client.errors.genericError + err).catch();
}
};
// permissions and aliases
exports.conf = {
enabled: true, // If your command is broken, set it to 'false' to disable it. Set it to 'true' if it works and doesn't need any more polish. Note that bot devs and above can still use disabled commands.
aliases: [], // Alternate name for the command. For example, c.copypasta's alias is "cpasta".
guildOnly: false, // If the command only applies to guilds and not DMs (eg kicking or muting), set this to true. In most cases this can just be left as false.
permLevel: "User" // If the command is only for a moderator, then you'd set it as for moderator. You can check https://github.com/Cytrus-RE/cytrus-re/blob/master/src/cnf.js for information about permission levels!
};
// command help page
exports.help = {
name: "", // Name of the command
category: "", // What category this command goes to. If the category doesn't exist, Cytrus-RE will make a new category. Make sure the category name is TitleCase and properly spaced.
description: "", // Description of your command. For example, c.copypasta would have the description "Sends copypastas to current channel".
usage: "" // How you use the command. For example, c.copypasta would be used as "c.copypasta <name of the copypasta>.
};