Hello I am making a discord economy bot and I made a hunt command now I want to know that how to detect if the key inv_ has the value of deer
for hunting I used this code well I added only 1 animal till now for hunting
if(message.content === `${defaultprefix}hunt`){
var animalHunt = [1 , 2 , 3 , 4 , 5]
var animalHunted = animalHunt[Math.floor(Math.random()*animalHunt.length)];
if(animalHunted === 1){
db.push(message.author.id + 'inv_', 'Deer')
message.channel.send("You were hunting and hunted a deer ")
}
}
using djs v12