changed order for quickmode
This commit is contained in:
@@ -296,10 +296,6 @@ async function nutsNut(interaction, quickMode) {
|
|||||||
files: [`${asset_path}nuts_onCD.avif`]
|
files: [`${asset_path}nuts_onCD.avif`]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
embed.setDescription('\u200B')
|
|
||||||
// pseudo animation
|
|
||||||
|
|
||||||
|
|
||||||
// set 1 hour cooldown
|
// set 1 hour cooldown
|
||||||
const cd = Math.floor((Date.now() + 3600000) / 1000)
|
const cd = Math.floor((Date.now() + 3600000) / 1000)
|
||||||
await cdColl.findOneAndUpdate({
|
await cdColl.findOneAndUpdate({
|
||||||
@@ -338,7 +334,9 @@ async function nutsNut(interaction, quickMode) {
|
|||||||
|
|
||||||
if (quickMode) {
|
if (quickMode) {
|
||||||
return interaction.editReply({ content: `Du hast ${formatNut(amount)} bekommen! :chestnut:` })
|
return interaction.editReply({ content: `Du hast ${formatNut(amount)} bekommen! :chestnut:` })
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
// pseudo animation
|
||||||
embed.setImage(assets.box)
|
embed.setImage(assets.box)
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
@@ -366,7 +364,6 @@ async function nutsNut(interaction, quickMode) {
|
|||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
files: [`${asset_path}${assetFile.split('://')[1]}`]
|
files: [`${asset_path}${assetFile.split('://')[1]}`]
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user