Did lots of unfinished stuff
This commit is contained in:
parent
10a0a7aca7
commit
2b6ac43e9b
4 changed files with 35 additions and 5 deletions
|
@ -1,10 +1,7 @@
|
|||
|
||||
const Discord = require('discord.js')
|
||||
const cooldown = new Discord.Collection()
|
||||
module.exports = async (client, message) => {
|
||||
if (message.author.bot) return
|
||||
|
||||
var prefix = '~'
|
||||
var prefix = '!'
|
||||
|
||||
const myMention = `<@&${client.user.id}>`
|
||||
const myMention2 = `<@!${client.user.id}>`
|
||||
|
@ -37,6 +34,14 @@ module.exports = async (client, message) => {
|
|||
return message.channel.send('You don\'t have permission to run this command!')
|
||||
}
|
||||
|
||||
const delay = () => {
|
||||
setTimeout(() => {
|
||||
client.cooldown.get(cmd).delete(message.author.id);
|
||||
message.channel.send(`${message.member} cooldown has expired for ${command} command.`)
|
||||
}, commands.get(command) * 1000);
|
||||
}
|
||||
|
||||
|
||||
message.author.permLevel = level
|
||||
|
||||
message.flags = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue