DiscordTickets/commands/example-command.js.example

22 lines
444 B
Plaintext
Raw Normal View History

2019-05-04 14:20:26 +03:00
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
},
};