Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유병우
/
lostark-discord-bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
유병우
2022-05-19 00:20:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f05256f8d6c446bcbff82cb0afbbd5e2e797f47
4f05256f
1 parent
1701bca8
Improve convenience of method
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
commands/info.js
commands/info.js
View file @
4f05256
...
...
@@ -50,6 +50,23 @@ module.exports = {
const
expertise
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(6) span:nth-child(2)"
).
text
();
const
abilityList
=
[];
let
abilityString
=
""
;
$
(
"ul.swiper-slide"
).
children
(
"li"
).
each
(
function
(
i
,
elem
)
{
abilityList
[
i
]
=
$
(
this
).
find
(
"span"
).
text
();});
for
(
idx
=
0
;
idx
<
abilityList
.
length
;
idx
++
){
abilityString
+=
abilityList
[
idx
]
+
"\n"
;
}
const
embed
=
new
MessageEmbed
()
.
setColor
(
"#D0F5A9"
)
.
setThumbnail
(
$
(
"img.profile-character-info__img"
).
attr
(
"src"
))
.
setTitle
(
nickName
)
.
addFields
(
{
name
:
"**캐릭터 정보**"
,
value
:
"`서 버`: "
+
server
+
"\n"
+
"`길 드`: "
+
guild
+
"\n"
+
"`클래스`: "
+
jickup
+
"\n"
+
"`칭 호`: "
+
title
+
"\n"
+
"`PVP 급`: "
+
pvpLevel
,
inline
:
true
},
{
name
:
"\u200b"
,
value
:
"\u200b"
,
inline
:
true
},
{
name
:
`**레벨 정보**`
,
value
:
"`캐릭터`: "
+
combatLevel
+
"\n"
+
"`아이템`: "
+
itemLevel
+
"\n"
+
"`원정대`: "
+
expeditionLevel
+
"\n"
+
"`영 지`: "
+
wisdomLevel
+
" "
+
wisdomName
,
inline
:
true
}
)
.
addField
(
'\u200b'
,
'\u200b'
)
.
addFields
(
{
name
:
"**캐릭터 특성**"
,
value
:
"`공격력`: "
+
attack
+
"\n"
+
"`생명력`: "
+
hp
+
"\n"
+
"`치 명`: "
+
crit
+
"\n"
+
"`특 화`: "
+
specialization
+
"\n"
+
"`제 압`: "
+
domination
+
"\n"
+
"`신 속`: "
+
swiftness
+
"\n"
+
"`인 내`: "
+
endurance
+
"\n"
+
"`숙 련`: "
+
expertise
,
inline
:
true
},
{
name
:
"**각인**"
,
value
:
abilityString
,
inline
:
true
}
)
interaction
.
reply
({
embeds
:
[
embed
],
allowedMentions
:
{
repliedUser
:
false
}});
});
}
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment