(filename: string)
| 27 | } |
| 28 | |
| 29 | _readParseFile(filename: string) { |
| 30 | const data = fs.readFileSync(this.filesPath + '/' + filename, 'utf8'); |
| 31 | return JSON.parse(data); |
| 32 | } |
| 33 | |
| 34 | _listFiles(channelName: string) { |
| 35 | return fs.readdirSync(this.filesPath + '/' + channelName + '/', 'utf8'); |