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-06-07 03:26:50 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
a8c2f179ced2516006d7cf2000a997500080ff45
a8c2f179
2 parents
4f97625c
96d66e45
Merge branch 'hotfix3.2'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
commands/loawa.js
commands/loawa.js
View file @
a8c2f17
const
{
SlashCommandBuilder
}
=
require
(
'@discordjs/builders'
);
const
open
=
require
(
'open
'
);
const
{
MessageEmbed
}
=
require
(
'discord.js
'
);
const
axios
=
require
(
"axios"
);
const
cheerio
=
require
(
"cheerio"
);
...
...
@@ -27,8 +27,11 @@ module.exports = {
interaction
.
reply
({
content
:
"`"
+
interaction
.
options
.
getString
(
"닉네임"
)
+
"`"
+
"이라는 캐릭터는 없습니다"
,
allowedMentions
:
{
repliedUser
:
false
}});
return
;
}
open
(
`https://loawa.com/char/
${
interaction
.
options
.
getString
(
"닉네임"
)}
`
);
interaction
.
reply
({
content
:
`
${
interaction
.
options
.
getString
(
"닉네임"
)}
의 로아와 정보로 이동합니다.`
,
allowedMentions
:
{
repliedUser
:
false
}});
const
embed
=
new
MessageEmbed
()
.
setColor
(
'#6FF3E0'
)
.
setTitle
(
"로아와"
)
.
setDescription
(
`[클릭하여
${
interaction
.
options
.
getString
(
"닉네임"
)}
의 로아와 정보로 이동합니다.](https://loawa.com/char/
${
interaction
.
options
.
getString
(
"닉네임"
)}
)`
);
interaction
.
reply
({
embeds
:
[
embed
],
allowedMentions
:
{
repliedUser
:
false
}});
});
},
...
...
Please
register
or
login
to post a comment