김건우

Fix data folder to add

Showing 1 changed file with 6 additions and 3 deletions
...@@ -27,15 +27,18 @@ client.on("ready", () => { ...@@ -27,15 +27,18 @@ client.on("ready", () => {
27 console.log(`Logged in as ${client.user.tag}!`) 27 console.log(`Logged in as ${client.user.tag}!`)
28 client.user.setActivity('쿠옹이사용법! ➤ '+prefix+'도움말', { 28 client.user.setActivity('쿠옹이사용법! ➤ '+prefix+'도움말', {
29 type : 'PLAYING' 29 type : 'PLAYING'
30 - }) 30 + });
31 + makeFolder('./data');
32 + makeFolder('./data/dDay');
33 + makeFolder('./data/studyTime');
34 + makeFolder('./data/stopWatch');
31 }); 35 });
32 36
33 37
34 //명령어 인식 38 //명령어 인식
35 client.on("message", msg => { 39 client.on("message", msg => {
36 console.log(msg.author.id, msg.content); //채팅을 로그에 띄우기 40 console.log(msg.author.id, msg.content); //채팅을 로그에 띄우기
37 - 41 +
38 -
39 42
40 //prefix로 시작하지 않는경우 통과 를 위한 명령어 43 //prefix로 시작하지 않는경우 통과 를 위한 명령어
41 if (!msg.content.startsWith(prefix) || msg.author.bot) return; 44 if (!msg.content.startsWith(prefix) || msg.author.bot) return;
......