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-29 14:44:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff9b6db389b9fa42d3ea0c404bd60d0dbc0a6d83
ff9b6db3
1 parent
b8ac67d5
Update mari command
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
commands/mari.js
commands/mari.js
View file @
ff9b6db
...
...
@@ -8,5 +8,29 @@ module.exports = {
.
setName
(
'마리샵'
)
.
setDescription
(
'현재 마리샵과 이전, 전전의 마리샵의 정보를 조회합니다.'
),
async
execute
(
interaction
)
{
const
itemInfo
=
[];
var
isMaintainence
=
false
;
await
axios
.
get
(
"https://lostark.game.onstove.com"
).
then
(
html
=>
{
const
$
=
cheerio
.
load
(
html
.
data
);
})
const
buttonsRow
=
new
MessageActionRow
()
.
addComponents
(
new
MessageButton
()
.
setCustomId
(
"12time_ago"
)
.
setLabel
(
"전전 마리샵 정보 조회"
)
.
setStyle
(
"SECONDARY"
)
)
.
addComponents
(
new
MessageButton
()
.
setCustomId
(
"6time_ago"
)
.
setLabel
(
"이전 마리샵 정보 조회"
)
.
setStyle
(
"SECONDARY"
)
)
.
addComponents
(
new
MessageButton
()
.
setCustomId
(
"0time_ago"
)
.
setLabel
(
"현재 마리샵 정보 조회"
)
.
setStyle
(
"SECONDARY"
)
);
},
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment