유병우

Improve convenience of method

...@@ -50,6 +50,23 @@ module.exports = { ...@@ -50,6 +50,23 @@ module.exports = {
50 const expertise = $("div.profile-ability-battle").find("ul li:nth-child(6) span:nth-child(2)").text(); 50 const expertise = $("div.profile-ability-battle").find("ul li:nth-child(6) span:nth-child(2)").text();
51 const abilityList = []; 51 const abilityList = [];
52 let abilityString = ""; 52 let abilityString = "";
53 + $("ul.swiper-slide").children("li").each(function(i, elem) {abilityList[i] = $(this).find("span").text();});
54 + for(idx = 0; idx < abilityList.length; idx++){ abilityString += abilityList[idx] + "\n"; }
55 + const embed = new MessageEmbed()
56 + .setColor("#D0F5A9")
57 + .setThumbnail($("img.profile-character-info__img").attr("src"))
58 + .setTitle(nickName)
59 + .addFields(
60 + {name: "**캐릭터 정보**", value: "`서 버`: "+server+"\n"+"`길 드`: "+guild+"\n"+"`클래스`: "+jickup+"\n"+"`칭 호`: "+title+"\n"+"`PVP 급`: "+pvpLevel, inline: true},
61 + {name: "\u200b", value: "\u200b", inline: true},
62 + {name: `**레벨 정보**`, value: "`캐릭터`: "+combatLevel+"\n"+"`아이템`: "+itemLevel+"\n"+"`원정대`: "+expeditionLevel+"\n"+"`영 지`: "+wisdomLevel+" "+wisdomName, inline: true}
63 + )
64 + .addField('\u200b', '\u200b')
65 + .addFields(
66 + {name: "**캐릭터 특성**", value: "`공격력`: "+attack+"\n"+"`생명력`: "+hp+"\n"+"`치 명`: "+crit+"\n"+"`특 화`: "+specialization+"\n"+"`제 압`: "+domination+"\n"+"`신 속`: "+swiftness+"\n"+"`인 내`: "+endurance+"\n"+"`숙 련`: "+expertise, inline: true},
67 + {name: "**각인**", value: abilityString, inline: true}
68 + )
69 + interaction.reply({embeds: [embed], allowedMentions: {repliedUser: false}});
53 }); 70 });
54 } 71 }
55 }; 72 };
...\ No newline at end of file ...\ No newline at end of file
......