make util file and test in message event

This commit is contained in:
Lio Young 2021-04-08 20:42:49 +02:00
parent b8a3e759de
commit 1292e4598b
No known key found for this signature in database
GPG Key ID: 789795A11879E169
2 changed files with 5 additions and 8 deletions

View File

@ -71,9 +71,9 @@ export = {
if (ctx.isDeveloper) cmd.AuthorPermissions = "NONE"
console.log(ctx.isDeveloper)
// if (cmd.nsfw && !ctx.channel.nsfw) return ctx.channel.send(
// lingua["en_US"].CHANNEL_NOT_NSFW
// )
if (cmd.nsfw && !ctx.channel.nsfw) return ctx.channel.send(
lingua["en_US"].CHANNEL_NOT_NSFW
)
}
}

View File

@ -1,6 +1,3 @@
import Language from "../../../lingua/index"
import Language from "./lingua/index"
export default {
"en_US": Language.en_US
}
export default Language