Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박건희
/
emon_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
Minty U
2022-05-12 20:31:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8eed341e3e94c8ab001ff32edbbb05084c90e9b1
8eed341e
1 parent
2602ef93
index.js
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
.gitignore
index.js
.gitignore
0 → 100644
View file @
8eed341
File mode changed
index.js
0 → 100644
View file @
8eed341
const
{
Client
,
Intents
}
=
require
(
'discord.js'
);
const
client
=
new
Client
({
intents
:
[
Intents
.
FLAGS
.
GUILDS
]
});
client
.
on
(
'ready'
,
()
=>
{
console
.
log
(
`Logged in as
${
client
.
user
.
tag
}
!`
);
});
client
.
on
(
'message'
,
msg
=>
{
if
(
msg
.
content
===
'ping'
)
{
msg
.
reply
(
'Pong!'
);
}
});
client
.
login
(
'token'
);
\ No newline at end of file
Please
register
or
login
to post a comment