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 languages = {}
|
||||||
|
|
||||||
const loadplug = (botno) => {
|
const loadplug = (botno) => {
|
||||||
const bpl = fs.readdirSync('util/lang')
|
const bpl = fs.readdirSync('lang')
|
||||||
for (const i in bpl) {
|
for (const i in bpl) {
|
||||||
if (!bpl[i].endsWith('.json')) {
|
if (!bpl[i].endsWith('.json')) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
languages[bpl[i].split('.')[0]] = require(`./lang/${bpl[i]}`)
|
languages[bpl[i].split('.')[0]] = require(`../lang/${bpl[i]}`)
|
||||||
} catch (e) { console.log(e) }
|
} catch (e) { console.log(e) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue