Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김건우
/
studyChatBot
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
김건우
2021-12-08 01:10:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b268dd0b057d01cfb1660fd726cdd89c23b2aab9
b268dd0b
1 parent
61e266e5
Update package.json
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
app.js
package.json
app.js
View file @
b268dd0
const
{
prefix
,
token
,
youtubeAPI
}
=
require
(
'./config.json'
);
const
Discord
=
require
(
"discord.js"
)
// npm install discord.js 필요
const
Discord
=
require
(
"discord.js"
)
const
{
MessageEmbed
}
=
require
(
'discord.js'
);
const
client
=
new
Discord
.
Client
()
const
fs
=
require
(
'fs'
);
// 파일 입출력 모듈
const
fs
=
require
(
'fs'
);
const
internal
=
require
(
"stream"
);
var
now
=
new
Date
();
// 현재날짜 및 시간 객체
const
moment
=
require
(
'moment'
)
// npm install --save moment 필요 (디데이 출력 모듈)
const
Youtube
=
require
(
'simple-youtube-api'
);
// npm install simple-youtube-api
var
now
=
new
Date
();
const
moment
=
require
(
'moment'
)
const
Youtube
=
require
(
'simple-youtube-api'
);
const
youtube
=
new
Youtube
(
youtubeAPI
);
const
ytdl
=
require
(
'ytdl-core'
);
// npm install ytdl-core
const
ytdl
=
require
(
'ytdl-core'
);
const
{
getVideoID
}
=
require
(
'ytdl-core'
);
//npm install discord.js @discord/opus 필요
//npm install --save ffmpeg-binaries 필요
...
...
package.json
View file @
b268dd0
...
...
@@ -11,6 +11,8 @@
"ffmpeg-static"
:
"^4.4.0"
,
"fs"
:
"^0.0.1-security"
,
"moment"
:
"^2.29.1"
,
"stream"
:
"^0.0.2"
"stream"
:
"^0.0.2"
,
"simple-youtube-api"
:
"^5.2.1"
,
"ytdl-core"
:
"^4.9.1"
}
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment