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-20 23:10:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c8431f79c6ca3c21ec7f5b7ae4e22d7c0e078dc
8c8431f7
1 parent
24311021
Update lospi command
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
commands/lospi.js
commands/lospi.js
View file @
8c8431f
const
{
SlashCommandBuilder
}
=
require
(
'@discordjs/builders'
);
const
{
MessageEmbed
}
=
require
(
'discord.js'
);
const
axios
=
require
(
"axios"
);
const
cheerio
=
require
(
"cheerio"
);
\ No newline at end of file
const
cheerio
=
require
(
"cheerio"
);
module
.
exports
=
{
data
:
new
SlashCommandBuilder
()
.
setName
(
'시세'
)
.
setDescription
(
'현재 100크리스탈 당 골드 시세를 조회합니다.'
),
async
execute
(
interaction
)
{
async
function
getHTML
()
{
try
{
return
await
axios
.
get
(
"https://www.mgx.kr/lostark/goldexchange/"
);
}
catch
(
error
)
{
console
.
error
(
error
);
}
};
},
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment