Moved Assets to Subdir, Migrated some old commands
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = {
|
||||
|
||||
const cdData = await cdColl.findOne({ userID: message.author.id })
|
||||
|
||||
if (!cdData || cdData.cooldown < Date.now() / 1000) {
|
||||
if (!cdData || cdData.cooldown < (Date.now() / 1000)) {
|
||||
let cd = Math.floor((Date.now() + 3600000) / 1000)
|
||||
await cdColl.findOneAndUpdate({
|
||||
userID: message.author.id
|
||||
@@ -40,7 +40,7 @@ module.exports = {
|
||||
})
|
||||
} else {
|
||||
return await message.reply({
|
||||
content: `Du kannst erst <t:${Math.floor(cdData?.cooldown / 1000)}:R> wieder nussen :(`,
|
||||
content: `Du kannst erst <t:${Math.floor(cdData?.cooldown)}:R> wieder nussen :(`,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user