This commit is contained in:
Eartharoid
2019-05-04 12:20:26 +01:00
parent ddbc940bd5
commit b32d038e0b
5 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
const Discord = require('discord.js');
const config = require('../config.json');
module.exports = {
name: 'example-command',
description: 'An example command',
usage: '[args]',
aliases: ['command', 'commands'],
example: 'example-command',
args: false,
cooldown: config.cooldown,
execute(message, args) {
const client = message.client;
// command starts here
message.delete();
// command ends here
},
};

View File

@@ -6,6 +6,7 @@ module.exports = {
description: 'Displays help menu',
usage: '[command]',
aliases: ['command', 'commands'],
example: 'help new',
args: false,
cooldown: config.cooldown,
execute(message, args) {

View File

@@ -1,9 +1,13 @@
const Discord = require('discord.js');
const config = require('../config.json');
module.exports = {
name: 'new',
description: 'Create a new ticket',
usage: '<brief description>',
aliases: ['ticket'],
example: 'new I found an error',
args: true,
cooldown: config.cooldown,
execute(message, args) {
// command starts here
message.delete();