Showing
1 changed file
with
13 additions
and
1 deletions
... | @@ -21,5 +21,17 @@ module.exports = { | ... | @@ -21,5 +21,17 @@ module.exports = { |
21 | .addChoice("16인", "16인") | 21 | .addChoice("16인", "16인") |
22 | .addChoice("30인(필보/카게)", "30인(필보/카게)") | 22 | .addChoice("30인(필보/카게)", "30인(필보/카게)") |
23 | ), | 23 | ), |
24 | - async execute(interaction) {}, | 24 | + async execute(interaction) { |
25 | + const buyValue = parseInt(parseInt(interaction.options.getString("경매가"))*0.95); | ||
26 | + const manyPeopleChoice = interaction.options.getString("인원"); | ||
27 | + let manyPeople; | ||
28 | + if(manyPeopleChoice == "4인") | ||
29 | + manyPeople = 4; | ||
30 | + else if(manyPeopleChoice == "8인") | ||
31 | + manyPeople = 8; | ||
32 | + else if(manyPeopleChoice == "16인") | ||
33 | + manyPeople = 16; | ||
34 | + else if(manyPeopleChoice == "30인(필보/카게)") | ||
35 | + manyPeople = 30; | ||
36 | + }, | ||
25 | }; | 37 | }; |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment