Did lots of unfinished stuff

This commit is contained in:
Emily 2020-03-31 19:24:51 +11:00
parent 10a0a7aca7
commit 2b6ac43e9b
4 changed files with 35 additions and 5 deletions

View file

@ -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 = []

View file

@ -1,3 +1,4 @@
module.exports = (client) => {
client.logger.ready('Connected to Discord as ' + client.user.tag)
client.logger.debug(client.cooldown)
}