Move lang files
This commit is contained in:
parent
b2c5e2e353
commit
fd62d27352
2 changed files with 2 additions and 2 deletions
|
@ -2,13 +2,13 @@ const fs = require('fs')
|
|||
const languages = {}
|
||||
|
||||
const loadplug = (botno) => {
|
||||
const bpl = fs.readdirSync('util/lang')
|
||||
const bpl = fs.readdirSync('lang')
|
||||
for (const i in bpl) {
|
||||
if (!bpl[i].endsWith('.json')) {
|
||||
continue
|
||||
}
|
||||
try {
|
||||
languages[bpl[i].split('.')[0]] = require(`./lang/${bpl[i]}`)
|
||||
languages[bpl[i].split('.')[0]] = require(`../lang/${bpl[i]}`)
|
||||
} catch (e) { console.log(e) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue