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:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96d66e45b5cbe9f5dbee68e259d9a27f15bcb3de
96d66e45
1 parent
4f97625c
Fix bugs of loawa open browser
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 @
96d66e4
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