김연수

Merge branch 'ocr' into 'master'

Ocr

Change the category of help function from example to help

See merge request !3
...@@ -69,7 +69,7 @@ exports.run = async (client, msg, args, prefix) => { ...@@ -69,7 +69,7 @@ exports.run = async (client, msg, args, prefix) => {
69 exports.config = { 69 exports.config = {
70 name: '도움말', 70 name: '도움말',
71 aliases: ['도움', '명령어', 'commands', 'help'], 71 aliases: ['도움', '명령어', 'commands', 'help'],
72 - category: ['example'], 72 + category: ['Help'],
73 des: ['봇에 대한 명령어 리스트들을 불러옵니다.'], 73 des: ['봇에 대한 명령어 리스트들을 불러옵니다.'],
74 use: ['!도움말 <명령어>'] 74 use: ['!도움말 <명령어>']
75 }; 75 };
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -75,14 +75,11 @@ exports.run = async (client, msg, args, prefix) => { ...@@ -75,14 +75,11 @@ exports.run = async (client, msg, args, prefix) => {
75 } 75 }
76 }; 76 };
77 77
78 -function kor(attachment) {
79 -
80 -}
81 78
82 exports.config = { 79 exports.config = {
83 name: 'ocr', 80 name: 'ocr',
84 aliases: ['ㅐㅊㄱ'], 81 aliases: ['ㅐㅊㄱ'],
85 - category: ['ocr'], 82 + category: ['Ocr'],
86 des: ['이미지를 첨부하고 명령어를 입력하면, 이미지에 있는 텍스트를 추출합니다.'], 83 des: ['이미지를 첨부하고 명령어를 입력하면, 이미지에 있는 텍스트를 추출합니다.'],
87 use: ['!ocr <사용 언어>'] 84 use: ['!ocr <사용 언어>']
88 }; 85 };
...\ No newline at end of file ...\ No newline at end of file
......
This diff is collapsed. Click to expand it.
...@@ -11,7 +11,7 @@ client.once('ready', () => { ...@@ -11,7 +11,7 @@ client.once('ready', () => {
11 11
12 client.commands = new Discord.Collection(); 12 client.commands = new Discord.Collection();
13 client.aliases = new Discord.Collection(); 13 client.aliases = new Discord.Collection();
14 -client.category = ['example', 'stationery', 'translate', 'ocr']; 14 +client.category = ['Help', 'Stationery', 'Translate', 'Ocr'];
15 15
16 fs.readdirSync("./Commands/").forEach(dir => { 16 fs.readdirSync("./Commands/").forEach(dir => {
17 const Filter = fs.readdirSync(`./Commands/${dir}`).filter(f => f.endsWith(".js")); 17 const Filter = fs.readdirSync(`./Commands/${dir}`).filter(f => f.endsWith(".js"));
......