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-11-11 02:56:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
851afc02c054dc0d69e9b28c54ecc390b5600f80
851afc02
0 parents
discord.js install
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
chatBot.js
chatBot.js
0 → 100644
View file @
851afc0
const
Discord
=
require
(
"discord.js"
)
const
client
=
new
Discord
.
Client
()
client
.
on
(
"ready"
,
()
=>
{
console
.
log
(
`Logged in as
${
client
.
user
.
tag
}
!`
)
})
client
.
on
(
"message"
,
msg
=>
{
if
(
msg
.
content
===
"ping"
)
{
msg
.
reply
(
"Pong!"
)
}
})
client
.
login
(
'OTA3OTU2NjY1MTEzMDE4NDA4.YYuuiQ.Rn2yQ9lGPLr_24sky29TWQHLOYA'
);
\ No newline at end of file
Please
register
or
login
to post a comment