mirror of https://github.com/thaldrin/thaldrin.git
start with language files
This commit is contained in:
parent
6aa23685a7
commit
1b0f236fcc
|
@ -5,6 +5,7 @@ import supabase from "../utils/database";
|
|||
import { Server, Usage } from "../utils/types";
|
||||
import config from "../../config";
|
||||
import { Commands, Shortlink, SourceFinder } from "../utils/wrapper.features";
|
||||
import lingua from "../utils/lingua";
|
||||
|
||||
export = {
|
||||
name: "message",
|
||||
|
@ -63,10 +64,16 @@ export = {
|
|||
client.cooldowns.set(cmd.name, new Collection())
|
||||
}
|
||||
|
||||
|
||||
const ctx = {
|
||||
client, guild: message.guild, message, supabase, config, isDeveloper: config.developers.includes(message.author.id)
|
||||
client, guild: message.guild, message, channel: message.channel, supabase, config, isDeveloper: config.developers.includes(message.author.id)
|
||||
}
|
||||
|
||||
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
|
||||
// )
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
import Language from "../../../lingua/index"
|
||||
|
||||
|
||||
export default {
|
||||
"en_US": Language.en_US
|
||||
}
|
Loading…
Reference in New Issue