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:12:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1701bca8af8cb0770d4df8466216043d536f9697
1701bca8
1 parent
97373221
Update info command
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
commands/info.js
commands/info.js
View file @
1701bca
...
...
@@ -30,6 +30,26 @@ module.exports = {
interaction
.
reply
({
content
:
"`"
+
nickName
+
"`"
+
"이라는 캐릭터는 없습니다"
,
allowedMentions
:
{
repliedUser
:
false
}});
return
;
}
const
server
=
$
(
"span.profile-character-info__server"
).
text
().
substring
(
1
);
const
jickup
=
$
(
"img.profile-character-info__img"
).
attr
(
"alt"
);
const
expeditionLevel
=
$
(
"div.level-info__expedition"
).
text
().
split
(
"Lv."
)[
1
];
const
combatLevel
=
$
(
"div.level-info__item"
).
text
().
split
(
"Lv."
)[
1
];
const
itemLevel
=
$
(
"div.level-info2__expedition"
).
text
().
split
(
"Lv."
)[
1
];
const
title
=
$
(
"div.game-info__title"
).
find
(
"span:nth-child(2)"
).
text
();
const
guild
=
$
(
"div.game-info__guild"
).
find
(
"span:nth-child(2)"
).
text
();
const
pvpLevel
=
$
(
"div.level-info__pvp"
).
find
(
"span:nth-child(2)"
).
text
();
const
wisdomLevel
=
$
(
"div.game-info__wisdom"
).
find
(
"span:nth-child(2)"
).
text
();
const
wisdomName
=
$
(
"div.game-info__wisdom"
).
find
(
"span:nth-child(3)"
).
text
();
const
attack
=
$
(
"div.profile-ability-basic"
).
find
(
"ul li:nth-child(1) span:nth-child(2)"
).
text
();
const
hp
=
$
(
"div.profile-ability-basic"
).
find
(
"ul li:nth-child(2) span:nth-child(2)"
).
text
();
const
crit
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(1) span:nth-child(2)"
).
text
();
const
specialization
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(2) span:nth-child(2)"
).
text
();
const
domination
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(3) span:nth-child(2)"
).
text
();
const
swiftness
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(4) span:nth-child(2)"
).
text
();
const
endurance
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(5) span:nth-child(2)"
).
text
();
const
expertise
=
$
(
"div.profile-ability-battle"
).
find
(
"ul li:nth-child(6) span:nth-child(2)"
).
text
();
const
abilityList
=
[];
let
abilityString
=
""
;
});
}
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment