DiscordTickets/commands/example-command.js.example

24 lines
485 B
Plaintext
Raw Normal View History

2019-05-04 14:20:26 +03:00
const Discord = require('discord.js');
const config = require('../config.json');
2019-05-06 19:18:43 +03:00
const log = require(`leekslazylogger`);
2019-05-04 14:20:26 +03:00
module.exports = {
name: 'example-command',
description: 'An example command',
usage: '[args]',
2019-05-04 18:09:05 +03:00
aliases: ['none'],
2019-05-04 14:23:27 +03:00
example: 'example-command',
2019-05-04 14:20:26 +03:00
args: false,
cooldown: config.cooldown,
2019-05-04 18:09:05 +03:00
guildOnly: true,
2019-05-04 14:20:26 +03:00
execute(message, args) {
const client = message.client;
// command starts here
message.delete();
2019-05-04 14:23:27 +03:00
2019-05-04 14:20:26 +03:00
// command ends here
},
};