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-16 20:53:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c83125141b1afafd0e942a4098c0e855683cc7dc
c8312514
1 parent
8eed341e
Fixed some errors
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
.gitignore
index.js
.gitignore
View file @
c831251
config.json
\ No newline at end of file
...
...
index.js
View file @
c831251
const
{
Client
,
Intents
}
=
require
(
'discord.js'
);
const
{
token
}
=
require
(
'./config.json'
);
const
client
=
new
Client
({
intents
:
[
Intents
.
FLAGS
.
GUILDS
]
});
const
client
=
new
Client
({
intents
:
[
Intents
.
FLAGS
.
GUILDS
,
Intents
.
FLAGS
.
GUILD_MESSAGES
]
});
client
.
on
(
'ready'
,
()
=>
{
client
.
on
ce
(
'ready'
,
()
=>
{
console
.
log
(
`Logged in as
${
client
.
user
.
tag
}
!`
);
});
client
.
on
(
'message'
,
msg
=>
{
client
.
on
(
'message
Create
'
,
msg
=>
{
if
(
msg
.
content
===
'ping'
)
{
msg
.
reply
(
'Pong!'
);
}
});
client
.
login
(
'token'
);
\ No newline at end of file
client
.
login
(
token
);
\ No newline at end of file
...
...
Please
register
or
login
to post a comment