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-09 00:02:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e09a279e3c306e22c84d86eb1bfdb1fdf10aae64
e09a279e
1 parent
86e46380
Fix data folder to add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
app.js
app.js
View file @
e09a279
...
...
@@ -27,15 +27,18 @@ client.on("ready", () => {
console
.
log
(
`Logged in as
${
client
.
user
.
tag
}
!`
)
client
.
user
.
setActivity
(
'쿠옹이사용법! ➤ '
+
prefix
+
'도움말'
,
{
type
:
'PLAYING'
})
});
makeFolder
(
'./data'
);
makeFolder
(
'./data/dDay'
);
makeFolder
(
'./data/studyTime'
);
makeFolder
(
'./data/stopWatch'
);
});
//명령어 인식
client
.
on
(
"message"
,
msg
=>
{
console
.
log
(
msg
.
author
.
id
,
msg
.
content
);
//채팅을 로그에 띄우기
//prefix로 시작하지 않는경우 통과 를 위한 명령어
if
(
!
msg
.
content
.
startsWith
(
prefix
)
||
msg
.
author
.
bot
)
return
;
...
...
Please
register
or
login
to post a comment