유병우

Update auction command

......@@ -21,5 +21,17 @@ module.exports = {
.addChoice("16인", "16인")
.addChoice("30인(필보/카게)", "30인(필보/카게)")
),
async execute(interaction) {},
async execute(interaction) {
const buyValue = parseInt(parseInt(interaction.options.getString("경매가"))*0.95);
const manyPeopleChoice = interaction.options.getString("인원");
let manyPeople;
if(manyPeopleChoice == "4인")
manyPeople = 4;
else if(manyPeopleChoice == "8인")
manyPeople = 8;
else if(manyPeopleChoice == "16인")
manyPeople = 16;
else if(manyPeopleChoice == "30인(필보/카게)")
manyPeople = 30;
},
};
\ No newline at end of file
......