mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 14:14:59 +05:00
Disabled memes and staff Localization changes
This commit is contained in:
parent
bf09dd2614
commit
b6fee7f188
91 changed files with 844 additions and 263 deletions
|
@ -12,7 +12,10 @@ class Memes extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("memes")
|
.setName("memes")
|
||||||
.setDescription(client.translate("fun/memes:DESCRIPTION"))
|
.setDescription(client.translate("fun/memes:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/memes:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/memes:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/memes:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
|
@ -11,7 +11,10 @@ class Staff extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("staff")
|
.setName("staff")
|
||||||
.setDescription(client.translate("general/staff:DESCRIPTION"))
|
.setDescription(client.translate("general/staff:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/staff:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/staff:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/staff:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
|
@ -13,6 +13,7 @@ class Automod extends BaseCommand {
|
||||||
.setDescription(client.translate("administration/automod:DESCRIPTION"))
|
.setDescription(client.translate("administration/automod:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({
|
.setDescriptionLocalizations({
|
||||||
"uk": client.translate("administration/automod:DESCRIPTION", null, "uk-UA"),
|
"uk": client.translate("administration/automod:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/automod:DESCRIPTION", null, "ru-RU"),
|
||||||
})
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
|
@ -20,12 +21,14 @@ class Automod extends BaseCommand {
|
||||||
.setDescription(client.translate("common:STATE"))
|
.setDescription(client.translate("common:STATE"))
|
||||||
.setDescriptionLocalizations({
|
.setDescriptionLocalizations({
|
||||||
"uk": client.translate("common:STATE", null, "uk-UA"),
|
"uk": client.translate("common:STATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:STATE", null, "ru-RU"),
|
||||||
})
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({
|
.setDescriptionLocalizations({
|
||||||
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
})
|
})
|
||||||
.addChannelTypes(ChannelType.GuildText)),
|
.addChannelTypes(ChannelType.GuildText)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -11,16 +11,25 @@ class Autorole extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("autorole")
|
.setName("autorole")
|
||||||
.setDescription(client.translate("administration/autorole:DESCRIPTION"))
|
.setDescription(client.translate("administration/autorole:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/autorole:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/autorole:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/autorole:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addBooleanOption(option => option.setName("state")
|
.addBooleanOption(option => option.setName("state")
|
||||||
.setDescription(client.translate("common:STATE"))
|
.setDescription(client.translate("common:STATE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:STATE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:STATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:STATE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addRoleOption(option => option.setName("role")
|
.addRoleOption(option => option.setName("role")
|
||||||
.setDescription(client.translate("common:ROLE"))
|
.setDescription(client.translate("common:ROLE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:ROLE", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:ROLE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:ROLE", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,19 +11,31 @@ class Config extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("config")
|
.setName("config")
|
||||||
.setDescription(client.translate("administration/config:DESCRIPTION"))
|
.setDescription(client.translate("administration/config:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/config:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/config:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/config:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addSubcommand(subcommand => subcommand.setName("list")
|
.addSubcommand(subcommand => subcommand.setName("list")
|
||||||
.setDescription(client.translate("administration/config:LIST"))
|
.setDescription(client.translate("administration/config:LIST"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/config:LIST", null, "uk-UA") }),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/config:LIST", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/config:LIST", null, "ru-RU"),
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("set")
|
.addSubcommand(subcommand => subcommand.setName("set")
|
||||||
.setDescription(client.translate("administration/config:SET"))
|
.setDescription(client.translate("administration/config:SET"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/config:SET", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/config:SET", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/config:SET", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("setting")
|
.addStringOption(option => option.setName("setting")
|
||||||
.setDescription(client.translate("administration/config:SETTING"))
|
.setDescription(client.translate("administration/config:SETTING"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/config:SETTING", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/config:SETTING", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/config:SETTING", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("administration/config:BIRTHDAYS"), value: "birthdays" },
|
{ name: client.translate("administration/config:BIRTHDAYS"), value: "birthdays" },
|
||||||
{ name: client.translate("administration/config:MODLOGS"), value: "modlogs" },
|
{ name: client.translate("administration/config:MODLOGS"), value: "modlogs" },
|
||||||
|
@ -34,11 +46,17 @@ class Config extends BaseCommand {
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addBooleanOption(option => option.setName("state")
|
.addBooleanOption(option => option.setName("state")
|
||||||
.setDescription(client.translate("common:STATE"))
|
.setDescription(client.translate("common:STATE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:STATE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:STATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:STATE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:STATE", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
|
})),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,29 +11,50 @@ class Goodbye extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("goodbye")
|
.setName("goodbye")
|
||||||
.setDescription(client.translate("administration/goodbye:DESCRIPTION"))
|
.setDescription(client.translate("administration/goodbye:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addSubcommand(subcommand => subcommand.setName("test")
|
.addSubcommand(subcommand => subcommand.setName("test")
|
||||||
.setDescription(client.translate("administration/goodbye:TEST"))
|
.setDescription(client.translate("administration/goodbye:TEST"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:TEST", null, "uk-UA") }),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:TEST", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:TEST", null, "ru-RU"),
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("config")
|
.addSubcommand(subcommand => subcommand.setName("config")
|
||||||
.setDescription(client.translate("administration/goodbye:CONFIG"))
|
.setDescription(client.translate("administration/goodbye:CONFIG"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:CONFIG", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:CONFIG", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:CONFIG", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addBooleanOption(option => option.setName("state")
|
.addBooleanOption(option => option.setName("state")
|
||||||
.setDescription(client.translate("common:STATE"))
|
.setDescription(client.translate("common:STATE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:STATE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:STATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:STATE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:CHANNEL", null, "uk-UA") }))
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
|
}))
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("administration/goodbye:MESSAGE"))
|
.setDescription(client.translate("administration/goodbye:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") }))
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:MESSAGE", null, "ru-RU"),
|
||||||
|
}))
|
||||||
.addBooleanOption(option => option.setName("image")
|
.addBooleanOption(option => option.setName("image")
|
||||||
.setDescription(client.translate("administration/goodbye:IMAGE"))
|
.setDescription(client.translate("administration/goodbye:IMAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:IMAGE", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:IMAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:IMAGE", null, "ru-RU"),
|
||||||
|
})),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,30 +11,52 @@ class Selectroles extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("selectroles")
|
.setName("selectroles")
|
||||||
.setDescription(client.translate("administration/selectroles:DESCRIPTION"))
|
.setDescription(client.translate("administration/selectroles:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/selectroles:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/selectroles:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/selectroles:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addSubcommand(subcommand => subcommand.setName("message")
|
.addSubcommand(subcommand => subcommand.setName("message")
|
||||||
.setDescription(client.translate("administration/selectroles:MESSAGE"))
|
.setDescription(client.translate("administration/selectroles:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/selectroles:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/selectroles:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/selectroles:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("text")
|
.addStringOption(option => option.setName("text")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("addrole")
|
.addSubcommand(subcommand => subcommand.setName("addrole")
|
||||||
.setDescription(client.translate("administration/selectroles:ADDROLE"))
|
.setDescription(client.translate("administration/selectroles:ADDROLE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/selectroles:ADDROLE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/selectroles:ADDROLE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/selectroles:ADDROLE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:CHANNEL", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption(option => option.setName("message_id")
|
.addStringOption(option => option.setName("message_id")
|
||||||
.setDescription(client.translate("common:MESSAGE_ID"))
|
.setDescription(client.translate("common:MESSAGE_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE_ID", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE_ID", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addRoleOption(option => option.setName("role")
|
.addRoleOption(option => option.setName("role")
|
||||||
.setDescription(client.translate("common:ROLE"))
|
.setDescription(client.translate("common:ROLE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:ROLE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:ROLE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:ROLE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Set extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("set")
|
.setName("set")
|
||||||
.setDescription(client.translate("administration/set:DESCRIPTION"))
|
.setDescription(client.translate("administration/set:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/set:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/set:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/set:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addStringOption(option => option.setName("type")
|
.addStringOption(option => option.setName("type")
|
||||||
.setDescription(client.translate("owner/debug:TYPE"))
|
.setDescription(client.translate("owner/debug:TYPE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:TYPE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:TYPE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:TYPE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("common:LEVEL"), value: "level" },
|
{ name: client.translate("common:LEVEL"), value: "level" },
|
||||||
|
@ -26,11 +32,17 @@ class Set extends BaseCommand {
|
||||||
))
|
))
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("int")
|
.addIntegerOption(option => option.setName("int")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Setlang extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("setlang")
|
.setName("setlang")
|
||||||
.setDescription(client.translate("administration/setlang:DESCRIPTION"))
|
.setDescription(client.translate("administration/setlang:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/setlang:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/setlang:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/setlang:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addStringOption(option => option.setName("language")
|
.addStringOption(option => option.setName("language")
|
||||||
.setDescription(client.translate("common:LANGUAGE"))
|
.setDescription(client.translate("common:LANGUAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:LANGUAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:LANGUAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:LANGUAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: "English", value: "en-US" },
|
{ name: "English", value: "en-US" },
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Stealemoji extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("stealemoji")
|
.setName("stealemoji")
|
||||||
.setDescription(client.translate("administration/stealemoji:DESCRIPTION"))
|
.setDescription(client.translate("administration/stealemoji:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/stealemoji:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/stealemoji:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/stealemoji:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addStringOption(option => option.setName("emoji")
|
.addStringOption(option => option.setName("emoji")
|
||||||
.setDescription(client.translate("common:EMOJI"))
|
.setDescription(client.translate("common:EMOJI"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:EMOJI", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:EMOJI", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:EMOJI", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,29 +11,50 @@ class Welcome extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("welcome")
|
.setName("welcome")
|
||||||
.setDescription(client.translate("administration/welcome:DESCRIPTION"))
|
.setDescription(client.translate("administration/welcome:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/welcome:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/welcome:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/welcome:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||||
.addSubcommand(subcommand => subcommand.setName("test")
|
.addSubcommand(subcommand => subcommand.setName("test")
|
||||||
.setDescription(client.translate("administration/goodbye:TEST"))
|
.setDescription(client.translate("administration/goodbye:TEST"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:TEST", null, "uk-UA") }),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:TEST", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:TEST", null, "ru-RU"),
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("config")
|
.addSubcommand(subcommand => subcommand.setName("config")
|
||||||
.setDescription(client.translate("administration/goodbye:CONFIG"))
|
.setDescription(client.translate("administration/goodbye:CONFIG"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:CONFIG", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:CONFIG", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:CONFIG", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addBooleanOption(option => option.setName("state")
|
.addBooleanOption(option => option.setName("state")
|
||||||
.setDescription(client.translate("common:STATE"))
|
.setDescription(client.translate("common:STATE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:STATE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:STATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:STATE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:CHANNEL", null, "uk-UA") }))
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
|
}))
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("administration/goodbye:MESSAGE"))
|
.setDescription(client.translate("administration/goodbye:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:MESSAGE", null, "uk-UA") }))
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:MESSAGE", null, "ru-RU"),
|
||||||
|
}))
|
||||||
.addBooleanOption(option => option.setName("image")
|
.addBooleanOption(option => option.setName("image")
|
||||||
.setDescription(client.translate("administration/goodbye:IMAGE"))
|
.setDescription(client.translate("administration/goodbye:IMAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("administration/goodbye:IMAGE", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("administration/goodbye:IMAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("administration/goodbye:IMAGE", null, "ru-RU"),
|
||||||
|
})),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Achievements extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("achievements")
|
.setName("achievements")
|
||||||
.setDescription(client.translate("economy/achievements:DESCRIPTION"))
|
.setDescription(client.translate("economy/achievements:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/achievements:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/achievements:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/achievements:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Bank extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("bank")
|
.setName("bank")
|
||||||
.setDescription(client.translate("economy/bank:DESCRIPTION"))
|
.setDescription(client.translate("economy/bank:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/bank:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/bank:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/bank:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("option")
|
.addStringOption(option => option.setName("option")
|
||||||
.setDescription(client.translate("economy/bank:OPTION"))
|
.setDescription(client.translate("economy/bank:OPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/bank:OPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/bank:OPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/bank:OPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("economy/bank:DEPOSIT"), value: "deposit" },
|
{ name: client.translate("economy/bank:DEPOSIT"), value: "deposit" },
|
||||||
|
@ -23,7 +29,10 @@ class Bank extends BaseCommand {
|
||||||
))
|
))
|
||||||
.addStringOption(option => option.setName("credits")
|
.addStringOption(option => option.setName("credits")
|
||||||
.setDescription(client.translate("misc:OPTION_NAN_ALL"))
|
.setDescription(client.translate("misc:OPTION_NAN_ALL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("misc:OPTION_NAN_ALL", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("misc:OPTION_NAN_ALL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("misc:OPTION_NAN_ALL", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -47,7 +56,7 @@ class Bank extends BaseCommand {
|
||||||
const choice = interaction.options.getString("option");
|
const choice = interaction.options.getString("option");
|
||||||
|
|
||||||
if (choice === "deposit") {
|
if (choice === "deposit") {
|
||||||
const credits = interaction.options.getString("credits") === "all" ? data.memberData.money : interaction.options.getString("credits");
|
const credits = interaction.options.getString("credits").toLowerCase() === "all" ? data.memberData.money : interaction.options.getString("credits");
|
||||||
if (isNaN(credits) || credits < 1) return interaction.error("misc:OPTION_NAN_ALL");
|
if (isNaN(credits) || credits < 1) return interaction.error("misc:OPTION_NAN_ALL");
|
||||||
if (data.memberData.money < credits) return interaction.error("economy/bank:NOT_ENOUGH_CREDIT", { money: `**${credits}** ${client.functions.getNoun(credits, interaction.translate("misc:NOUNS:CREDIT:1"), interaction.translate("misc:NOUNS:CREDIT:2"), interaction.translate("misc:NOUNS:CREDIT:5"))}` });
|
if (data.memberData.money < credits) return interaction.error("economy/bank:NOT_ENOUGH_CREDIT", { money: `**${credits}** ${client.functions.getNoun(credits, interaction.translate("misc:NOUNS:CREDIT:1"), interaction.translate("misc:NOUNS:CREDIT:2"), interaction.translate("misc:NOUNS:CREDIT:5"))}` });
|
||||||
|
|
||||||
|
|
|
@ -11,35 +11,46 @@ class Birthdate extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("birthdate")
|
.setName("birthdate")
|
||||||
.setDescription(client.translate("economy/birthdate:DESCRIPTION"))
|
.setDescription(client.translate("economy/birthdate:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/birthdate:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/birthdate:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/birthdate:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addIntegerOption(option => option.setName("day")
|
.addIntegerOption(option => option.setName("day")
|
||||||
.setDescription(client.translate("economy/birthdate:DAY"))
|
.setDescription(client.translate("economy/birthdate:DAY"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/birthdate:DAY", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/birthdate:DAY", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/birthdate:DAY", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("month")
|
.addIntegerOption(option => option.setName("month")
|
||||||
.setDescription(client.translate("economy/birthdate:MONTH"))
|
.setDescription(client.translate("economy/birthdate:MONTH"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/birthdate:MONTH", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/birthdate:MONTH", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/birthdate:MONTH", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: "Январь", value: 1 },
|
{ name: client.translate("economy/birthdate:JANUARY"), value: 1 },
|
||||||
{ name: "Февраль", value: 2 },
|
{ name: client.translate("economy/birthdate:FEBRUARY"), value: 2 },
|
||||||
{ name: "Март", value: 3 },
|
{ name: client.translate("economy/birthdate:MARCH"), value: 3 },
|
||||||
{ name: "Апрель", value: 4 },
|
{ name: client.translate("economy/birthdate:APRIL"), value: 4 },
|
||||||
{ name: "Май", value: 5 },
|
{ name: client.translate("economy/birthdate:MAY"), value: 5 },
|
||||||
{ name: "Июнь", value: 6 },
|
{ name: client.translate("economy/birthdate:JUNE"), value: 6 },
|
||||||
{ name: "Июль", value: 7 },
|
{ name: client.translate("economy/birthdate:JULY"), value: 7 },
|
||||||
{ name: "Август", value: 8 },
|
{ name: client.translate("economy/birthdate:AUGUST"), value: 8 },
|
||||||
{ name: "Сентябрь", value: 9 },
|
{ name: client.translate("economy/birthdate:SEPTEMBER"), value: 9 },
|
||||||
{ name: "Октябрь", value: 10 },
|
{ name: client.translate("economy/birthdate:OCTOBER"), value: 10 },
|
||||||
{ name: "Ноябрь", value: 11 },
|
{ name: client.translate("economy/birthdate:NOVEMBER"), value: 11 },
|
||||||
{ name: "Декабрь", value: 12 },
|
{ name: client.translate("economy/birthdate:DECEMBER"), value: 12 },
|
||||||
))
|
))
|
||||||
.addIntegerOption(option => option.setName("year")
|
.addIntegerOption(option => option.setName("year")
|
||||||
.setDescription(client.translate("economy/birthdate:YEAR"))
|
.setDescription(client.translate("economy/birthdate:YEAR"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/birthdate:YEAR", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
.setRequired(true)
|
"uk": client.translate("economy/birthdate:YEAR", null, "uk-UA"),
|
||||||
.setAutocomplete(true)),
|
"ru": client.translate("economy/birthdate:YEAR", null, "ru-RU"),
|
||||||
|
})
|
||||||
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
@ -61,9 +72,9 @@ class Birthdate extends BaseCommand {
|
||||||
async execute(client, interaction, data) {
|
async execute(client, interaction, data) {
|
||||||
const day = interaction.options.getInteger("day"),
|
const day = interaction.options.getInteger("day"),
|
||||||
month = interaction.options.getInteger("month"),
|
month = interaction.options.getInteger("month"),
|
||||||
year = interaction.options.getInteger("year");
|
year = interaction.options.getInteger("year"),
|
||||||
|
d = new Date(year, month - 1, day);
|
||||||
|
|
||||||
const d = new Date(year, month - 1, day);
|
|
||||||
if (!(day == d.getDate() && month - 1 == d.getMonth() && year == d.getFullYear())) return interaction.error("economy/birthdate:INVALID_DATE");
|
if (!(day == d.getDate() && month - 1 == d.getMonth() && year == d.getFullYear())) return interaction.error("economy/birthdate:INVALID_DATE");
|
||||||
if (d.getTime() > Date.now()) return interaction.error("economy/birthdate:DATE_TOO_HIGH");
|
if (d.getTime() > Date.now()) return interaction.error("economy/birthdate:DATE_TOO_HIGH");
|
||||||
if (d.getTime() < (Date.now() - 2.523e+12)) return interaction.error("economy/birthdate:DATE_TOO_LOW");
|
if (d.getTime() < (Date.now() - 2.523e+12)) return interaction.error("economy/birthdate:DATE_TOO_LOW");
|
||||||
|
@ -75,24 +86,6 @@ class Birthdate extends BaseCommand {
|
||||||
date: client.functions.printDate(client, d),
|
date: client.functions.printDate(client, d),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {import("../../base/JaBa")} client
|
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
async autocompleteRun(client, interaction) {
|
|
||||||
const int = interaction.options.getInteger("year"),
|
|
||||||
results = Array.from({ length: (2023 - 1900) / 1 }, (_, i) => 1900 + i * 1).filter(i => i.toString().includes(int));
|
|
||||||
|
|
||||||
return interaction.respond(
|
|
||||||
results.slice(0, 25).map(i => ({
|
|
||||||
name: i,
|
|
||||||
value: i,
|
|
||||||
}),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Birthdate;
|
module.exports = Birthdate;
|
|
@ -11,7 +11,10 @@ class Divorce extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("divorce")
|
.setName("divorce")
|
||||||
.setDescription(client.translate("economy/divorce:DESCRIPTION"))
|
.setDescription(client.translate("economy/divorce:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/divorce:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/divorce:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/divorce:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,16 +11,22 @@ class Leaderboard extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("leaderboard")
|
.setName("leaderboard")
|
||||||
.setDescription(client.translate("economy/leaderboard:DESCRIPTION"))
|
.setDescription(client.translate("economy/leaderboard:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/leaderboard:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/leaderboard:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/leaderboard:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("type")
|
.addStringOption(option => option.setName("type")
|
||||||
.setDescription(client.translate("owner/debug:TYPE"))
|
.setDescription(client.translate("owner/debug:TYPE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:TYPE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:TYPE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:TYPE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("economy/leaderboard:LEVEL"), value: "level" },
|
{ name: client.translate("common:LEVEL"), value: "level" },
|
||||||
{ name: client.translate("economy/leaderboard:MONEY"), value: "money" },
|
{ name: client.translate("common:MONEY"), value: "money" },
|
||||||
{ name: client.translate("economy/leaderboard:REP"), value: "rep" },
|
{ name: client.translate("common:REP"), value: "rep" },
|
||||||
)),
|
)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,11 +12,17 @@ class Marry extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("marry")
|
.setName("marry")
|
||||||
.setDescription(client.translate("economy/marry:DESCRIPTION"))
|
.setDescription(client.translate("economy/marry:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/marry:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/marry:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/marry:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Money extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("money")
|
.setName("money")
|
||||||
.setDescription(client.translate("economy/money:DESCRIPTION"))
|
.setDescription(client.translate("economy/money:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/money:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/money:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/money:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,15 +11,24 @@ class Pay extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("pay")
|
.setName("pay")
|
||||||
.setDescription(client.translate("economy/pay:DESCRIPTION"))
|
.setDescription(client.translate("economy/pay:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/pay:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/pay:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/pay:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("amount")
|
.addIntegerOption(option => option.setName("amount")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -59,7 +68,7 @@ class Pay extends BaseCommand {
|
||||||
await data.memberData.save();
|
await data.memberData.save();
|
||||||
|
|
||||||
memberData.money += amount;
|
memberData.money += amount;
|
||||||
memberData.save();
|
await memberData.save();
|
||||||
|
|
||||||
const info1 = {
|
const info1 = {
|
||||||
user: member.user.discriminator === "0" ? member.user.username : member.user.tag,
|
user: member.user.discriminator === "0" ? member.user.username : member.user.tag,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Profile extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("profile")
|
.setName("profile")
|
||||||
.setDescription(client.translate("economy/profile:DESCRIPTION"))
|
.setDescription(client.translate("economy/profile:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/profile:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/profile:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/profile:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Rep extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("rep")
|
.setName("rep")
|
||||||
.setDescription(client.translate("economy/rep:DESCRIPTION"))
|
.setDescription(client.translate("economy/rep:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/rep:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/rep:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/rep:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -57,6 +63,7 @@ class Rep extends BaseCommand {
|
||||||
const userData = await client.findOrCreateUser({
|
const userData = await client.findOrCreateUser({
|
||||||
id: user.id,
|
id: user.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
userData.rep++;
|
userData.rep++;
|
||||||
|
|
||||||
if (!userData.achievements.rep.achieved) {
|
if (!userData.achievements.rep.achieved) {
|
||||||
|
|
|
@ -11,15 +11,24 @@ class Rob extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("rob")
|
.setName("rob")
|
||||||
.setDescription(client.translate("economy/rob:DESCRIPTION"))
|
.setDescription(client.translate("economy/rob:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/rob:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/rob:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/rob:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("amount")
|
.addIntegerOption(option => option.setName("amount")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Setbio extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("setbio")
|
.setName("setbio")
|
||||||
.setDescription(client.translate("economy/setbio:DESCRIPTION"))
|
.setDescription(client.translate("economy/setbio:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/setbio:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/setbio:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/setbio:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("text")
|
.addStringOption(option => option.setName("text")
|
||||||
.setDescription(client.translate("economy/profile:BIO"))
|
.setDescription(client.translate("economy/profile:BIO"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/profile:BIO", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/profile:BIO", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/profile:BIO", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Slots extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("slots")
|
.setName("slots")
|
||||||
.setDescription(client.translate("economy/slots:DESCRIPTION"))
|
.setDescription(client.translate("economy/slots:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/slots:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/slots:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/slots:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addIntegerOption(option => option.setName("amount")
|
.addIntegerOption(option => option.setName("amount")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Transactions extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("transactions")
|
.setName("transactions")
|
||||||
.setDescription(client.translate("economy/transactions:DESCRIPTION"))
|
.setDescription(client.translate("economy/transactions:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/transactions:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/transactions:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/transactions:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addBooleanOption(option => option.setName("clear")
|
.addBooleanOption(option => option.setName("clear")
|
||||||
.setDescription(client.translate("economy/transactions:CLEAR"))
|
.setDescription(client.translate("economy/transactions:CLEAR"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/transactions:CLEAR", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/transactions:CLEAR", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/transactions:CLEAR", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Work extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("work")
|
.setName("work")
|
||||||
.setDescription(client.translate("economy/work:DESCRIPTION"))
|
.setDescription(client.translate("economy/work:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("economy/work:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("economy/work:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("economy/work:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Eightball extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("8ball")
|
.setName("8ball")
|
||||||
.setDescription(client.translate("fun/8ball:DESCRIPTION"))
|
.setDescription(client.translate("fun/8ball:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/8ball:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/8ball:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/8ball:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("question")
|
.addStringOption(option => option.setName("question")
|
||||||
.setDescription(client.translate("fun/8ball:QUESTION"))
|
.setDescription(client.translate("fun/8ball:QUESTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/8ball:QUESTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/8ball:QUESTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/8ball:QUESTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Cat extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("cat")
|
.setName("cat")
|
||||||
.setDescription(client.translate("fun/cat:DESCRIPTION"))
|
.setDescription(client.translate("fun/cat:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/cat:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/cat:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/cat:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Crab extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("crab")
|
.setName("crab")
|
||||||
.setDescription(client.translate("fun/crab:DESCRIPTION"))
|
.setDescription(client.translate("fun/crab:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/crab:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/crab:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/crab:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Dog extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("dog")
|
.setName("dog")
|
||||||
.setDescription(client.translate("fun/dog:DESCRIPTION"))
|
.setDescription(client.translate("fun/dog:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/dog:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/dog:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/dog:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,15 +12,24 @@ class LMGTFY extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("lmgtfy")
|
.setName("lmgtfy")
|
||||||
.setDescription(client.translate("fun/lmgtfy:DESCRIPTION"))
|
.setDescription(client.translate("fun/lmgtfy:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/lmgtfy:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/lmgtfy:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/lmgtfy:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("query")
|
.addStringOption(option => option.setName("query")
|
||||||
.setDescription(client.translate("fun/lmgtfy:QUERY"))
|
.setDescription(client.translate("fun/lmgtfy:QUERY"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/lmgtfy:QUERY", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/lmgtfy:QUERY", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/lmgtfy:QUERY", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addBooleanOption(option => option.setName("short")
|
.addBooleanOption(option => option.setName("short")
|
||||||
.setDescription(client.translate("fun/lmgtfy:SHORT"))
|
.setDescription(client.translate("fun/lmgtfy:SHORT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/lmgtfy:SHORT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/lmgtfy:SHORT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/lmgtfy:SHORT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -41,6 +50,8 @@ class LMGTFY extends BaseCommand {
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
|
await interaction.deferReply({ ephemeral: true });
|
||||||
|
|
||||||
const query = interaction.options.getString("query").replace(/[' '_]/g, "+"),
|
const query = interaction.options.getString("query").replace(/[' '_]/g, "+"),
|
||||||
short = interaction.options.getBoolean("short"),
|
short = interaction.options.getBoolean("short"),
|
||||||
url = `https://letmegooglethat.com/?q=${query}`;
|
url = `https://letmegooglethat.com/?q=${query}`;
|
||||||
|
@ -48,14 +59,12 @@ class LMGTFY extends BaseCommand {
|
||||||
if (short) {
|
if (short) {
|
||||||
const res = await fetch(`https://is.gd/create.php?format=simple&url=${encodeURIComponent(url)}`).then(res => res.text());
|
const res = await fetch(`https://is.gd/create.php?format=simple&url=${encodeURIComponent(url)}`).then(res => res.text());
|
||||||
|
|
||||||
interaction.reply({
|
interaction.editReply({
|
||||||
content: `<${res}>`,
|
content: `<${res}>`,
|
||||||
ephemeral: true,
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
interaction.reply({
|
interaction.editReply({
|
||||||
content: `\`\`\`<${url}>\`\`\``,
|
content: `<${url}>`,
|
||||||
ephemeral: true,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,17 +12,26 @@ class Lovecalc extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("lovecalc")
|
.setName("lovecalc")
|
||||||
.setDescription(client.translate("fun/lovecalc:DESCRIPTION"))
|
.setDescription(client.translate("fun/lovecalc:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/lovecalc:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/lovecalc:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/lovecalc:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option =>
|
.addUserOption(option =>
|
||||||
option.setName("first_member")
|
option.setName("first_member")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addUserOption(option =>
|
.addUserOption(option =>
|
||||||
option.setName("second_member")
|
option.setName("second_member")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
@ -52,7 +61,7 @@ class Lovecalc extends BaseCommand {
|
||||||
.split("")
|
.split("")
|
||||||
.filter(e => !isNaN(e))
|
.filter(e => !isNaN(e))
|
||||||
.join("");
|
.join("");
|
||||||
const percent = parseInt(string.substr(0, 2), 10);
|
const percent = parseInt(string.slice(0, 2), 10);
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Number extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("number")
|
.setName("number")
|
||||||
.setDescription(client.translate("fun/number:DESCRIPTION"))
|
.setDescription(client.translate("fun/number:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/number:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/number:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/number:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,11 +12,17 @@ class TicTacToe extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("tictactoe")
|
.setName("tictactoe")
|
||||||
.setDescription(client.translate("fun/tictactoe:DESCRIPTION"))
|
.setDescription(client.translate("fun/tictactoe:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("fun/tictactoe:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("fun/tictactoe:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("fun/tictactoe:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Afk extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("afk")
|
.setName("afk")
|
||||||
.setDescription(client.translate("general/afk:DESCRIPTION"))
|
.setDescription(client.translate("general/afk:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/afk:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/afk:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/afk:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -36,14 +42,16 @@ class Afk extends BaseCommand {
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
async execute(client, interaction, data) {
|
async execute(client, interaction, data) {
|
||||||
|
interaction.deferReply({ ephemeral: true });
|
||||||
|
|
||||||
const reason = interaction.options.getString("message");
|
const reason = interaction.options.getString("message");
|
||||||
|
|
||||||
data.userData.afk = reason;
|
data.userData.afk = reason;
|
||||||
data.userData.save();
|
await data.userData.save();
|
||||||
|
|
||||||
interaction.success("general/afk:SUCCESS", {
|
interaction.success("general/afk:SUCCESS", {
|
||||||
reason,
|
reason,
|
||||||
}, { ephemeral: true });
|
}, { edit: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,23 @@ class Avatar extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("avatar")
|
.setName("avatar")
|
||||||
.setDescription(client.translate("general/avatar:DESCRIPTION"))
|
.setDescription(client.translate("general/avatar:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/avatar:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/avatar:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/avatar:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
}))
|
||||||
|
.addBooleanOption(option => option.setName("server")
|
||||||
|
.setDescription(client.translate("general/avatar:SERVER"))
|
||||||
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/avatar:SERVER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/avatar:SERVER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
@ -35,10 +47,8 @@ class Avatar extends BaseCommand {
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
const user = interaction.options.getUser("user") || interaction.user;
|
const member = interaction.options.getMember("user") || interaction.member;
|
||||||
const avatarURL = user.displayAvatarURL({
|
const avatarURL = interaction.options.getBoolean("server") ? member.avatarURL({ size: 512 }) : member.user.avatarURL({ size: 512 });
|
||||||
size: 512,
|
|
||||||
});
|
|
||||||
|
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
files: [{
|
files: [{
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Boosters extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("boosters")
|
.setName("boosters")
|
||||||
.setDescription(client.translate("general/boosters:DESCRIPTION"))
|
.setDescription(client.translate("general/boosters:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/boosters:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/boosters:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/boosters:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Emoji extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("emoji")
|
.setName("emoji")
|
||||||
.setDescription(client.translate("general/emoji:DESCRIPTION"))
|
.setDescription(client.translate("general/emoji:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/emoji:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/emoji:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/emoji:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("emoji")
|
.addStringOption(option => option.setName("emoji")
|
||||||
.setDescription(client.translate("common:EMOJI"))
|
.setDescription(client.translate("common:EMOJI"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("commom:EMOJI", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("commom:EMOJI", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:EMOJI", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Help extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("help")
|
.setName("help")
|
||||||
.setDescription(client.translate("general/help:DESCRIPTION"))
|
.setDescription(client.translate("general/help:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/help:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/help:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/help:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option =>
|
.addStringOption(option =>
|
||||||
option.setName("command")
|
option.setName("command")
|
||||||
.setDescription(client.translate("common:COMMAND"))
|
.setDescription(client.translate("common:COMMAND"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:COMMAND", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:COMMAND", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:COMMAND", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setAutocomplete(true)),
|
.setAutocomplete(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,11 +12,17 @@ class Minecraft extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("minecraft")
|
.setName("minecraft")
|
||||||
.setDescription(client.translate("general/minecraft:DESCRIPTION"))
|
.setDescription(client.translate("general/minecraft:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/minecraft:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/minecraft:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/minecraft:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("ip")
|
.addStringOption(option => option.setName("ip")
|
||||||
.setDescription(client.translate("common:IP"))
|
.setDescription(client.translate("common:IP"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:IP", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:IP", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:IP", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Ping extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("ping")
|
.setName("ping")
|
||||||
.setDescription(client.translate("general/ping:DESCRIPTION"))
|
.setDescription(client.translate("general/ping:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/ping:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/ping:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/ping:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -13,15 +13,24 @@ class Remindme extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("remindme")
|
.setName("remindme")
|
||||||
.setDescription(client.translate("general/remindme:DESCRIPTION"))
|
.setDescription(client.translate("general/remindme:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/remindme:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/remindme:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/remindme:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("time")
|
.addStringOption(option => option.setName("time")
|
||||||
.setDescription(client.translate("general/remindme:TIME"))
|
.setDescription(client.translate("general/remindme:TIME"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/remindme:TIME", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/remindme:TIME", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/remindme:TIME", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,15 +11,24 @@ class Report extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("report")
|
.setName("report")
|
||||||
.setDescription(client.translate("general/report:DESCRIPTION"))
|
.setDescription(client.translate("general/report:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/report:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/report:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/report:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Serverinfo extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("serverinfo")
|
.setName("serverinfo")
|
||||||
.setDescription(client.translate("general/serverinfo:DESCRIPTION"))
|
.setDescription(client.translate("general/serverinfo:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/serverinfo:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/serverinfo:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/serverinfo:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,11 +12,17 @@ class Shorturl extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("shorturl")
|
.setName("shorturl")
|
||||||
.setDescription(client.translate("general/shorturl:DESCRIPTION"))
|
.setDescription(client.translate("general/shorturl:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/shorturl:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/shorturl:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/shorturl:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("url")
|
.addStringOption(option => option.setName("url")
|
||||||
.setDescription(client.translate("general/shorturl:URL"))
|
.setDescription(client.translate("common:URL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/shorturl:URL", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:URL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:URL", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,6 +11,10 @@ class Stats extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("stats")
|
.setName("stats")
|
||||||
.setDescription(client.translate("general/stats:DESCRIPTION"))
|
.setDescription(client.translate("general/stats:DESCRIPTION"))
|
||||||
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/stats:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/stats:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Suggest extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("suggest")
|
.setName("suggest")
|
||||||
.setDescription(client.translate("general/suggest:DESCRIPTION"))
|
.setDescription(client.translate("general/suggest:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/suggest:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/suggest:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/suggest:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Userinfo extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("userinfo")
|
.setName("userinfo")
|
||||||
.setDescription(client.translate("general/userinfo:DESCRIPTION"))
|
.setDescription(client.translate("general/userinfo:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/userinfo:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/userinfo:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/userinfo:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -12,11 +12,17 @@ class Whois extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("whois")
|
.setName("whois")
|
||||||
.setDescription(client.translate("general/whois:DESCRIPTION"))
|
.setDescription(client.translate("general/whois:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("general/whois:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("general/whois:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("general/whois:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("ip")
|
.addStringOption(option => option.setName("ip")
|
||||||
.setDescription(client.translate("common:IP"))
|
.setDescription(client.translate("common:IP"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:IP", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:IP", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:IP", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -39,9 +45,11 @@ class Whois extends BaseCommand {
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
||||||
const ip = interaction.options.getString("ip");
|
const ip = interaction.options.getString("ip"),
|
||||||
const whois = await fetch(`http://ip-api.com/json/${ip}?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,zip,timezone,currency,isp,org,as,mobile,proxy,hosting,query`).then(response => response.json());
|
whois = await fetch(`http://ip-api.com/json/${ip}?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,zip,timezone,currency,isp,org,as,mobile,proxy,hosting,query`).then(response => response.json());
|
||||||
|
|
||||||
if (whois.status === "fail") return interaction.editReply({ content: interaction.translate("general/whois:ERROR", { ip }) });
|
if (whois.status === "fail") return interaction.editReply({ content: interaction.translate("general/whois:ERROR", { ip }) });
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(interaction.translate("general/whois:INFO_ABOUT", {
|
.setTitle(interaction.translate("general/whois:INFO_ABOUT", {
|
||||||
ip,
|
ip,
|
||||||
|
@ -64,8 +72,8 @@ class Whois extends BaseCommand {
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
if (whois.proxy) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:PROXY") });
|
if (whois.proxy) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:PROXY") });
|
||||||
else if (whois.mobile) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:MOBILE") });
|
if (whois.mobile) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:MOBILE") });
|
||||||
else if (whois.hosting) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:HOSTING") });
|
if (whois.hosting) embed.addFields({ name: interaction.translate("general/whois:INFO"), value: interaction.translate("general/whois:HOSTING") });
|
||||||
|
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
|
|
|
@ -13,7 +13,10 @@ class Checkjar extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("checkjar")
|
.setName("checkjar")
|
||||||
.setDescription(client.translate("iat/checkjar:DESCRIPTION"))
|
.setDescription(client.translate("iat/checkjar:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("iat/checkjar:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("iat/checkjar:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("iat/checkjar:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,19 +11,31 @@ class Clear extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("clear")
|
.setName("clear")
|
||||||
.setDescription(client.translate("moderation/clear:DESCRIPTION"))
|
.setDescription(client.translate("moderation/clear:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/clear:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/clear:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/clear:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addStringOption(option => option.setName("option")
|
.addStringOption(option => option.setName("option")
|
||||||
.setDescription(client.translate("moderation/clear:OPTION"))
|
.setDescription(client.translate("moderation/clear:OPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/clear:OPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/clear:OPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/clear:OPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") }))
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
}))
|
||||||
.addStringOption(option => option.setName("id")
|
.addStringOption(option => option.setName("id")
|
||||||
.setDescription(client.translate("common:USER_ID"))
|
.setDescription(client.translate("common:USER_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER_ID", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER_ID", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: false,
|
ownerOnly: false,
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Clearwarns extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("clearwarns")
|
.setName("clearwarns")
|
||||||
.setDescription(client.translate("moderation/clearwarns:DESCRIPTION"))
|
.setDescription(client.translate("moderation/clearwarns:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/clearwarns:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/clearwarns:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/clearwarns:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -12,51 +12,87 @@ class Giveaway extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("giveaway")
|
.setName("giveaway")
|
||||||
.setDescription(client.translate("moderation/giveaway:DESCRIPTION"))
|
.setDescription(client.translate("moderation/giveaway:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addSubcommand(subcommand => subcommand.setName("create")
|
.addSubcommand(subcommand => subcommand.setName("create")
|
||||||
.setDescription(client.translate("moderation/giveaway:CREATE"))
|
.setDescription(client.translate("moderation/giveaway:CREATE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:CREATE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:CREATE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:CREATE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("duration")
|
.addStringOption(option => option.setName("duration")
|
||||||
.setDescription(client.translate("common:DURATION"))
|
.setDescription(client.translate("common:DURATION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:DURATION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:DURATION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:DURATION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("winners_count")
|
.addIntegerOption(option => option.setName("winners_count")
|
||||||
.setDescription(client.translate("moderation/giveaway:WINNERS_COUNT"))
|
.setDescription(client.translate("moderation/giveaway:WINNERS_COUNT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:WINNERS_COUNT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:WINNERS_COUNT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:WINNERS_COUNT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption(option => option.setName("prize")
|
.addStringOption(option => option.setName("prize")
|
||||||
.setDescription(client.translate("moderation/giveaway:PRIZE"))
|
.setDescription(client.translate("moderation/giveaway:PRIZE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:PRIZE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:PRIZE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:PRIZE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addBooleanOption(option => option.setName("isdrop")
|
.addBooleanOption(option => option.setName("isdrop")
|
||||||
.setDescription(client.translate("moderation/giveaway:ISDROP"))
|
.setDescription(client.translate("moderation/giveaway:ISDROP"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:ISDROP", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:ISDROP", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:ISDROP", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("reroll")
|
.addSubcommand(subcommand => subcommand.setName("reroll")
|
||||||
.setDescription(client.translate("moderation/giveaway:REROLL"))
|
.setDescription(client.translate("moderation/giveaway:REROLL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:REROLL", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:REROLL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:REROLL", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("giveaway_id")
|
.addStringOption(option => option.setName("giveaway_id")
|
||||||
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("end")
|
.addSubcommand(subcommand => subcommand.setName("end")
|
||||||
.setDescription(client.translate("moderation/giveaway:END"))
|
.setDescription(client.translate("moderation/giveaway:END"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:END", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:END", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:END", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("giveaway_id")
|
.addStringOption(option => option.setName("giveaway_id")
|
||||||
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("delete")
|
.addSubcommand(subcommand => subcommand.setName("delete")
|
||||||
.setDescription(client.translate("moderation/giveaway:DELETE"))
|
.setDescription(client.translate("moderation/giveaway:DELETE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:DELETE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:DELETE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:DELETE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("giveaway_id")
|
.addStringOption(option => option.setName("giveaway_id")
|
||||||
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
.setDescription(client.translate("moderation/giveaway:GIVEAWAY_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/giveaway:GIVEAWAY_ID", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Poll extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("poll")
|
.setName("poll")
|
||||||
.setDescription(client.translate("moderation/poll:DESCRIPTION"))
|
.setDescription(client.translate("moderation/poll:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/poll:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/poll:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/poll:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addStringOption(option => option.setName("question")
|
.addStringOption(option => option.setName("question")
|
||||||
.setDescription(client.translate("moderation/poll:QUESTION"))
|
.setDescription(client.translate("moderation/poll:QUESTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/poll:QUESTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/poll:QUESTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/poll:QUESTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Unban extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("unban")
|
.setName("unban")
|
||||||
.setDescription(client.translate("moderation/unban:DESCRIPTION"))
|
.setDescription(client.translate("moderation/unban:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/unban:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/unban:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/unban:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addStringOption(option => option.setName("user_id")
|
.addStringOption(option => option.setName("user_id")
|
||||||
.setDescription(client.translate("common:USER_ID"))
|
.setDescription(client.translate("common:USER_ID"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER_ID", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER_ID", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER_ID", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,12 +11,18 @@ class Warns extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("warns")
|
.setName("warns")
|
||||||
.setDescription(client.translate("moderation/warns:DESCRIPTION"))
|
.setDescription(client.translate("moderation/warns:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("moderation/warns:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("moderation/warns:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("moderation/warns:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers && PermissionFlagsBits.ManageMessages)
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Back extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("back")
|
.setName("back")
|
||||||
.setDescription(client.translate("music/back:DESCRIPTION"))
|
.setDescription(client.translate("music/back:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/back:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/back:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/back:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -13,11 +13,17 @@ class Clips extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("clips")
|
.setName("clips")
|
||||||
.setDescription(client.translate("music/clips:DESCRIPTION"))
|
.setDescription(client.translate("music/clips:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/clips:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/clips:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/clips:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("query")
|
.addStringOption(option => option.setName("query")
|
||||||
.setDescription(client.translate("music/clips:QUERY"))
|
.setDescription(client.translate("music/clips:QUERY"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/clips:QUERY", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/clips:QUERY", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/clips:QUERY", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setAutocomplete(true)),
|
.setAutocomplete(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -12,10 +12,17 @@ class Loop extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("loop")
|
.setName("loop")
|
||||||
.setDescription(client.translate("music/loop:DESCRIPTION"))
|
.setDescription(client.translate("music/loop:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/loop:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/loop:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/loop:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("option")
|
.addStringOption(option => option.setName("option")
|
||||||
.setDescription(client.translate("music/loop:OPTION"))
|
.setDescription(client.translate("music/loop:OPTION"))
|
||||||
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/loop:OPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/loop:OPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("music/loop:AUTOPLAY"), value: "3" },
|
{ name: client.translate("music/loop:AUTOPLAY"), value: "3" },
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Nowplaying extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("nowplaying")
|
.setName("nowplaying")
|
||||||
.setDescription(client.translate("music/nowplaying:DESCRIPTION"))
|
.setDescription(client.translate("music/nowplaying:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/nowplaying:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/nowplaying:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/nowplaying:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Play extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("play")
|
.setName("play")
|
||||||
.setDescription(client.translate("music/play:DESCRIPTION"))
|
.setDescription(client.translate("music/play:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/play:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/play:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/play:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("query")
|
.addStringOption(option => option.setName("query")
|
||||||
.setDescription(client.translate("music/play:QUERY"))
|
.setDescription(client.translate("music/play:QUERY"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/play:QUERY", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/play:QUERY", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/play:QUERY", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setAutocomplete(true)),
|
.setAutocomplete(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -12,7 +12,10 @@ class Queue extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("queue")
|
.setName("queue")
|
||||||
.setDescription(client.translate("music/queue:DESCRIPTION"))
|
.setDescription(client.translate("music/queue:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/queue:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/queue:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/queue:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,10 +11,16 @@ class Seek extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("seek")
|
.setName("seek")
|
||||||
.setDescription(client.translate("music/seek:DESCRIPTION"))
|
.setDescription(client.translate("music/seek:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/seek:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/seek:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/seek:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addIntegerOption(option => option.setName("time")
|
.addIntegerOption(option => option.setName("time")
|
||||||
.setDescription(client.translate("music/seek:TIME"))
|
.setDescription(client.translate("music/seek:TIME"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/seek:TIME", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/seek:TIME", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/seek:TIME", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Shuffle extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("shuffle")
|
.setName("shuffle")
|
||||||
.setDescription(client.translate("music/shuffle:DESCRIPTION"))
|
.setDescription(client.translate("music/shuffle:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/shuffle:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/shuffle:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/shuffle:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Skip extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("skip")
|
.setName("skip")
|
||||||
.setDescription(client.translate("music/skip:DESCRIPTION"))
|
.setDescription(client.translate("music/skip:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/skip:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/skip:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/skip:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Skipto extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("skipto")
|
.setName("skipto")
|
||||||
.setDescription(client.translate("music/skipto:DESCRIPTION"))
|
.setDescription(client.translate("music/skipto:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/skipto:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/skipto:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/skipto:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addIntegerOption(option => option.setName("position")
|
.addIntegerOption(option => option.setName("position")
|
||||||
.setDescription(client.translate("music/skipto:POSITION"))
|
.setDescription(client.translate("music/skipto:POSITION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/skipto:POSITION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/skipto:POSITION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/skipto:POSITION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
@ -49,7 +55,7 @@ class Skipto extends BaseCommand {
|
||||||
queue.node.skipTo(queue.tracks.at(position - 1));
|
queue.node.skipTo(queue.tracks.at(position - 1));
|
||||||
|
|
||||||
interaction.success("music/skipto:SUCCESS", {
|
interaction.success("music/skipto:SUCCESS", {
|
||||||
position: position,
|
position,
|
||||||
});
|
});
|
||||||
} else return interaction.error("music/skipto:ERROR", { position: position });
|
} else return interaction.error("music/skipto:ERROR", { position: position });
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Stop extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("stop")
|
.setName("stop")
|
||||||
.setDescription(client.translate("music/stop:DESCRIPTION"))
|
.setDescription(client.translate("music/stop:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/stop:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/stop:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/stop:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Volume extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("volume")
|
.setName("volume")
|
||||||
.setDescription(client.translate("music/volume:DESCRIPTION"))
|
.setDescription(client.translate("music/volume:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("music/volume:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("music/volume:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("music/volume:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addIntegerOption(option => option.setName("int")
|
.addIntegerOption(option => option.setName("int")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setAutocomplete(true)),
|
.setAutocomplete(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -12,7 +12,10 @@ class NSFW extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("nsfw")
|
.setName("nsfw")
|
||||||
.setDescription(client.translate("nsfw/nsfw:DESCRIPTION"))
|
.setDescription(client.translate("nsfw/nsfw:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("nsfw/nsfw:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("nsfw/nsfw:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("nsfw/nsfw:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -11,19 +11,31 @@ class Announcement extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("announcement")
|
.setName("announcement")
|
||||||
.setDescription(client.translate("owner/announcement:DESCRIPTION"))
|
.setDescription(client.translate("owner/announcement:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/announcement:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/announcement:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/announcement:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addBooleanOption(option => option.setName("tag")
|
.addBooleanOption(option => option.setName("tag")
|
||||||
.setDescription(client.translate("owner/announcement:TAG"))
|
.setDescription(client.translate("owner/announcement:TAG"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/announcement:TAG", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/announcement:TAG", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/announcement:TAG", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addBooleanOption(option => option.setName("important")
|
.addBooleanOption(option => option.setName("important")
|
||||||
.setDescription(client.translate("owner/announcement:IMPORTANT"))
|
.setDescription(client.translate("owner/announcement:IMPORTANT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/announcement:IMPORTANT", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/announcement:IMPORTANT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/announcement:IMPORTANT", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: true,
|
ownerOnly: true,
|
||||||
|
|
|
@ -11,14 +11,23 @@ class Debug extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("debug")
|
.setName("debug")
|
||||||
.setDescription(client.translate("owner/debug:DESCRIPTION"))
|
.setDescription(client.translate("owner/debug:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addSubcommand(subcommand => subcommand.setName("set")
|
.addSubcommand(subcommand => subcommand.setName("set")
|
||||||
.setDescription(client.translate("owner/debug:SET"))
|
.setDescription(client.translate("owner/debug:SET"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:SET", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:SET", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:SET", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("type")
|
.addStringOption(option => option.setName("type")
|
||||||
.setDescription(client.translate("owner/debug:TYPE"))
|
.setDescription(client.translate("owner/debug:TYPE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:TYPE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:TYPE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:TYPE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("common:LEVEL"), value: "level" },
|
{ name: client.translate("common:LEVEL"), value: "level" },
|
||||||
|
@ -29,19 +38,31 @@ class Debug extends BaseCommand {
|
||||||
))
|
))
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("int")
|
.addIntegerOption(option => option.setName("int")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
)
|
)
|
||||||
.addSubcommand(subcommand => subcommand.setName("add")
|
.addSubcommand(subcommand => subcommand.setName("add")
|
||||||
.setDescription(client.translate("owner/debug:ADD"))
|
.setDescription(client.translate("owner/debug:ADD"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:ADD", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:ADD", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:ADD", null, "ru-RU"),
|
||||||
|
})
|
||||||
.addStringOption(option => option.setName("type")
|
.addStringOption(option => option.setName("type")
|
||||||
.setDescription(client.translate("owner/debug:TYPE"))
|
.setDescription(client.translate("owner/debug:TYPE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/debug:TYPE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/debug:TYPE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/debug:TYPE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setChoices(
|
.setChoices(
|
||||||
{ name: client.translate("common:LEVEL"), value: "level" },
|
{ name: client.translate("common:LEVEL"), value: "level" },
|
||||||
|
@ -52,11 +73,17 @@ class Debug extends BaseCommand {
|
||||||
))
|
))
|
||||||
.addUserOption(option => option.setName("user")
|
.addUserOption(option => option.setName("user")
|
||||||
.setDescription(client.translate("common:USER"))
|
.setDescription(client.translate("common:USER"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:USER", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:USER", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:USER", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addIntegerOption(option => option.setName("int")
|
.addIntegerOption(option => option.setName("int")
|
||||||
.setDescription(client.translate("common:INT"))
|
.setDescription(client.translate("common:INT"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:INT", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:INT", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:INT", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
),
|
),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -11,11 +11,17 @@ class Eval extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("eval")
|
.setName("eval")
|
||||||
.setDescription(client.translate("owner/eval:DESCRIPTION"))
|
.setDescription(client.translate("owner/eval:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/eval:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/eval:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/eval:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("code")
|
.addStringOption(option => option.setName("code")
|
||||||
.setDescription(client.translate("owner/eval:CODE"))
|
.setDescription(client.translate("owner/eval:CODE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/eval:CODE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/eval:CODE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/eval:CODE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -13,11 +13,17 @@ class Reload extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("reload")
|
.setName("reload")
|
||||||
.setDescription(client.translate("owner/reload:DESCRIPTION"))
|
.setDescription(client.translate("owner/reload:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/reload:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/reload:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/reload:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true)
|
.setDMPermission(true)
|
||||||
.addStringOption(option => option.setName("command")
|
.addStringOption(option => option.setName("command")
|
||||||
.setDescription(client.translate("common:COMMAND"))
|
.setDescription(client.translate("common:COMMAND"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:COMMAND", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:COMMAND", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:COMMAND", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setAutocomplete(true)),
|
.setAutocomplete(true)),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
|
|
|
@ -11,15 +11,24 @@ class Say extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("say")
|
.setName("say")
|
||||||
.setDescription(client.translate("owner/say:DESCRIPTION"))
|
.setDescription(client.translate("owner/say:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/say:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/say:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/say:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
||||||
.addStringOption(option => option.setName("message")
|
.addStringOption(option => option.setName("message")
|
||||||
.setDescription(client.translate("common:MESSAGE"))
|
.setDescription(client.translate("common:MESSAGE"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:MESSAGE", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:MESSAGE", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:MESSAGE", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addChannelOption(option => option.setName("channel")
|
.addChannelOption(option => option.setName("channel")
|
||||||
.setDescription(client.translate("common:CHANNEL"))
|
.setDescription(client.translate("common:CHANNEL"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("common:CHANNEL", null, "uk-UA") })),
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("common:CHANNEL", null, "uk-UA"),
|
||||||
|
"ru": client.translate("common:CHANNEL", null, "ru-RU"),
|
||||||
|
})),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
ownerOnly: true,
|
ownerOnly: true,
|
||||||
|
|
|
@ -11,7 +11,10 @@ class Servers extends BaseCommand {
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName("servers")
|
.setName("servers")
|
||||||
.setDescription(client.translate("owner/servers:DESCRIPTION"))
|
.setDescription(client.translate("owner/servers:DESCRIPTION"))
|
||||||
.setDescriptionLocalizations({ "uk": client.translate("owner/servers:DESCRIPTION", null, "uk-UA") })
|
.setDescriptionLocalizations({
|
||||||
|
"uk": client.translate("owner/servers:DESCRIPTION", null, "uk-UA"),
|
||||||
|
"ru": client.translate("owner/servers:DESCRIPTION", null, "ru-RU"),
|
||||||
|
})
|
||||||
.setDMPermission(true),
|
.setDMPermission(true),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
### JaBa v4.2.5
|
||||||
|
* Изменено
|
||||||
|
* Изменения в локализации, основным языком теперь является английский.\
|
||||||
|
Подсказки по командам зависят от языка вашего клиента, ответ зависит от языка сервера.
|
||||||
|
* Отключена команда *memes*.
|
||||||
|
* Отключена команда *staff*.
|
||||||
|
|
||||||
|
* Удалено
|
||||||
|
* Антиспам - Дискорд и сам справляется.
|
||||||
|
|
||||||
### JaBa v4.2.4
|
### JaBa v4.2.4
|
||||||
* Добавлено
|
* Добавлено
|
||||||
* Бот цитирует сообщение если отправлена ссылка на него.
|
* Бот цитирует сообщение если отправлена ссылка на него.
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
"SERVER_ID": "Server ID",
|
"SERVER_ID": "Server ID",
|
||||||
"MESSAGE_ID": "Message ID",
|
"MESSAGE_ID": "Message ID",
|
||||||
"USER_ID": "User ID",
|
"USER_ID": "User ID",
|
||||||
|
"URL": "URL",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"INT": "Integer",
|
"INT": "Integer",
|
||||||
"IP": "IP Address",
|
"IP": "IP Address",
|
||||||
|
@ -45,7 +46,7 @@
|
||||||
"PAGE": "Page",
|
"PAGE": "Page",
|
||||||
"PROFILE": "Profile",
|
"PROFILE": "Profile",
|
||||||
"REASON": "Reason",
|
"REASON": "Reason",
|
||||||
"REP": "Reputation Points",
|
"REP": "Reputation",
|
||||||
"ROBOT": "Bot",
|
"ROBOT": "Bot",
|
||||||
"ROLE": "Role",
|
"ROLE": "Role",
|
||||||
"ROLES": "Roles",
|
"ROLES": "Roles",
|
||||||
|
|
|
@ -10,5 +10,18 @@
|
||||||
"DATE_TOO_HIGH": "Hmm... You haven't been born yet",
|
"DATE_TOO_HIGH": "Hmm... You haven't been born yet",
|
||||||
"HAPPY_BIRTHDAY": "Happy Birthday",
|
"HAPPY_BIRTHDAY": "Happy Birthday",
|
||||||
"HAPPY_BIRTHDAY_MESSAGE": "Happy birthday to {{name}} (<@{{user}}>)! Today, they have turned {{age}}!",
|
"HAPPY_BIRTHDAY_MESSAGE": "Happy birthday to {{name}} (<@{{user}}>)! Today, they have turned {{age}}!",
|
||||||
"SUCCESS": "Your date of birth has been set to **{{date}}**"
|
"SUCCESS": "Your date of birth has been set to **{{date}}**",
|
||||||
|
|
||||||
|
"JANUARY": "January",
|
||||||
|
"FEBRUARY": "February",
|
||||||
|
"MARCH": "March",
|
||||||
|
"APRIL": "April",
|
||||||
|
"MAY": "May",
|
||||||
|
"JUNE": "June",
|
||||||
|
"JULY": "July",
|
||||||
|
"AUGUST": "August",
|
||||||
|
"SEPTEMBER": "September",
|
||||||
|
"OCTOBER": "October",
|
||||||
|
"NOVEMBER": "November",
|
||||||
|
"DECEMBER": "December"
|
||||||
}
|
}
|
|
@ -2,9 +2,6 @@
|
||||||
"DESCRIPTION": "Shows the leaderboard for credits, level, or reputation points",
|
"DESCRIPTION": "Shows the leaderboard for credits, level, or reputation points",
|
||||||
"USAGE": "[type]",
|
"USAGE": "[type]",
|
||||||
"EXAMPLES": "leaderboard type:Level",
|
"EXAMPLES": "leaderboard type:Level",
|
||||||
"LEVEL": "Level",
|
|
||||||
"MONEY": "Credits",
|
|
||||||
"REP": "Reputation",
|
|
||||||
"MOBILE": ":confused: I noticed that you're online from a mobile device... The leaderboard may not display correctly on small screens. Please try again later from a different device.",
|
"MOBILE": ":confused: I noticed that you're online from a mobile device... The leaderboard may not display correctly on small screens. Please try again later from a different device.",
|
||||||
"TABLE": "{{name}} Leaderboard"
|
"TABLE": "{{name}} Leaderboard"
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Gets user's avatar",
|
"DESCRIPTION": "Gets user's avatar",
|
||||||
"USAGE": "(@user)",
|
"USAGE": "(@user)",
|
||||||
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226"
|
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226",
|
||||||
|
"SERVER": "Server avatar?"
|
||||||
}
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Shortens a URL",
|
"DESCRIPTION": "Shortens a URL",
|
||||||
"USAGE": "[url]",
|
"USAGE": "[url]",
|
||||||
"EXAMPLES": "shorturl url:https://google.com",
|
"EXAMPLES": "shorturl url:https://google.com"
|
||||||
"URL": "URL"
|
|
||||||
}
|
}
|
|
@ -1,10 +1,17 @@
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
"name": "en-US",
|
||||||
|
"nativeName": "English",
|
||||||
|
"moment": "en",
|
||||||
|
"defaultMomentFormat": "MMMM Do YYYY",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "ru-RU",
|
"name": "ru-RU",
|
||||||
"nativeName": "Русский",
|
"nativeName": "Русский",
|
||||||
"moment": "ru",
|
"moment": "ru",
|
||||||
"defaultMomentFormat": "Do MMMM YYYY",
|
"defaultMomentFormat": "Do MMMM YYYY",
|
||||||
"default": true
|
"default": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "uk-UA",
|
"name": "uk-UA",
|
||||||
|
@ -12,12 +19,5 @@
|
||||||
"moment": "uk",
|
"moment": "uk",
|
||||||
"defaultMomentFormat": "Do MMMM YYYY",
|
"defaultMomentFormat": "Do MMMM YYYY",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "en-US",
|
|
||||||
"nativeName": "English",
|
|
||||||
"moment": "en",
|
|
||||||
"defaultMomentFormat": "MMMM Do YYYY",
|
|
||||||
"default": false
|
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -25,6 +25,7 @@
|
||||||
"SERVER_ID": "ID сервера",
|
"SERVER_ID": "ID сервера",
|
||||||
"MESSAGE_ID": "ID сообщения",
|
"MESSAGE_ID": "ID сообщения",
|
||||||
"USER_ID": "ID пользователя",
|
"USER_ID": "ID пользователя",
|
||||||
|
"URL": "URL",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"INT": "Целое число",
|
"INT": "Целое число",
|
||||||
"IP": "IP адрес",
|
"IP": "IP адрес",
|
||||||
|
@ -45,7 +46,7 @@
|
||||||
"PAGE": "Страница",
|
"PAGE": "Страница",
|
||||||
"PROFILE": "Профиль",
|
"PROFILE": "Профиль",
|
||||||
"REASON": "Причина",
|
"REASON": "Причина",
|
||||||
"REP": "Очки репутации",
|
"REP": "Репутация",
|
||||||
"ROBOT": "Бот",
|
"ROBOT": "Бот",
|
||||||
"ROLE": "Роль",
|
"ROLE": "Роль",
|
||||||
"ROLES": "Роли",
|
"ROLES": "Роли",
|
||||||
|
|
|
@ -10,5 +10,18 @@
|
||||||
"DATE_TOO_HIGH": "Хммм... Вы ещё не родились",
|
"DATE_TOO_HIGH": "Хммм... Вы ещё не родились",
|
||||||
"HAPPY_BIRTHDAY": "День рождения",
|
"HAPPY_BIRTHDAY": "День рождения",
|
||||||
"HAPPY_BIRTHDAY_MESSAGE": "Поздравляем {{name}} (<@{{user}}>) с днём рождения, сегодня ему(ей) исполнилось {{age}}!",
|
"HAPPY_BIRTHDAY_MESSAGE": "Поздравляем {{name}} (<@{{user}}>) с днём рождения, сегодня ему(ей) исполнилось {{age}}!",
|
||||||
"SUCCESS": "Ваша дата рождения установлена на **{{date}}**"
|
"SUCCESS": "Ваша дата рождения установлена на **{{date}}**",
|
||||||
|
|
||||||
|
"JANUARY": "Январь",
|
||||||
|
"FEBRUARY": "Февраль",
|
||||||
|
"MARCH": "Март",
|
||||||
|
"APRIL": "Апрель",
|
||||||
|
"MAY": "Май",
|
||||||
|
"JUNE": "Июнь",
|
||||||
|
"JULY": "Июль",
|
||||||
|
"AUGUST": "Август",
|
||||||
|
"SEPTEMBER": "Сентябрь",
|
||||||
|
"OCTOBER": "Октябрь",
|
||||||
|
"NOVEMBER": "Ноябрь",
|
||||||
|
"DECEMBER": "Декабрь"
|
||||||
}
|
}
|
|
@ -2,9 +2,6 @@
|
||||||
"DESCRIPTION": "Показать таблицу лидеров по кредитам, уровню или очкам репутации",
|
"DESCRIPTION": "Показать таблицу лидеров по кредитам, уровню или очкам репутации",
|
||||||
"USAGE": "[type]",
|
"USAGE": "[type]",
|
||||||
"EXAMPLES": "leaderboard type:Уровень",
|
"EXAMPLES": "leaderboard type:Уровень",
|
||||||
"LEVEL": "Уровень",
|
|
||||||
"MONEY": "Кредиты",
|
|
||||||
"REP": "Репутация",
|
|
||||||
"MOBILE": ":confused: Я заметил, что вы онлайн с телефона... Таблица лидеров может отображаться некорректно на маленьких экранах. Попробуйте позже с другого устройства",
|
"MOBILE": ":confused: Я заметил, что вы онлайн с телефона... Таблица лидеров может отображаться некорректно на маленьких экранах. Попробуйте позже с другого устройства",
|
||||||
"TABLE": "Таблица лидеров {{name}}"
|
"TABLE": "Таблица лидеров {{name}}"
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Возвращает аватар пользователя",
|
"DESCRIPTION": "Возвращает аватар пользователя",
|
||||||
"USAGE": "(@user)",
|
"USAGE": "(@user)",
|
||||||
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226"
|
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226",
|
||||||
|
"SERVER": "Аватар сервера?"
|
||||||
}
|
}
|
|
@ -25,6 +25,7 @@
|
||||||
"SERVER_ID": "ID сервера",
|
"SERVER_ID": "ID сервера",
|
||||||
"MESSAGE_ID": "ID повідомлення",
|
"MESSAGE_ID": "ID повідомлення",
|
||||||
"USER_ID": "ID користувача",
|
"USER_ID": "ID користувача",
|
||||||
|
"URL": "URL",
|
||||||
"INT": "Ціле число",
|
"INT": "Ціле число",
|
||||||
"IP": "IP-адреса",
|
"IP": "IP-адреса",
|
||||||
"JOINED": "Приєднався",
|
"JOINED": "Приєднався",
|
||||||
|
@ -44,7 +45,7 @@
|
||||||
"PAGE": "Сторінка",
|
"PAGE": "Сторінка",
|
||||||
"PROFILE": "Профіль",
|
"PROFILE": "Профіль",
|
||||||
"REASON": "Причина",
|
"REASON": "Причина",
|
||||||
"REP": "Поінти репутації",
|
"REP": "Репутація",
|
||||||
"ROBOT": "Бот",
|
"ROBOT": "Бот",
|
||||||
"ROLE": "Роль",
|
"ROLE": "Роль",
|
||||||
"ROLES": "Ролі",
|
"ROLES": "Ролі",
|
||||||
|
|
|
@ -10,5 +10,18 @@
|
||||||
"DATE_TOO_HIGH": "Хммм... Ви ще не народилися",
|
"DATE_TOO_HIGH": "Хммм... Ви ще не народилися",
|
||||||
"HAPPY_BIRTHDAY": "День народження",
|
"HAPPY_BIRTHDAY": "День народження",
|
||||||
"HAPPY_BIRTHDAY_MESSAGE": "Вітаємо {{name}} (<@{{user}}>) з днем народження, сьогодні йому виповнилося {{age}}",
|
"HAPPY_BIRTHDAY_MESSAGE": "Вітаємо {{name}} (<@{{user}}>) з днем народження, сьогодні йому виповнилося {{age}}",
|
||||||
"SUCCESS": "Вашу дату народження встановлено на **{{date}}**"
|
"SUCCESS": "Вашу дату народження встановлено на **{{date}}**",
|
||||||
|
|
||||||
|
"JANUARY": "Січень",
|
||||||
|
"FEBRUARY": "Лютий",
|
||||||
|
"MARCH": "Березень",
|
||||||
|
"APRIL": "Квітень",
|
||||||
|
"MAY": "Травень",
|
||||||
|
"JUNE": "Червень",
|
||||||
|
"JULY": "Липень",
|
||||||
|
"AUGUST": "Серпень",
|
||||||
|
"SEPTEMBER": "Вересень",
|
||||||
|
"OCTOBER": "Жовтень",
|
||||||
|
"NOVEMBER": "Листопад",
|
||||||
|
"DECEMBER": "Грудень"
|
||||||
}
|
}
|
|
@ -2,9 +2,6 @@
|
||||||
"DESCRIPTION": "Показати таблицю лідерів за кредитами, рівнем або поінтами репутації",
|
"DESCRIPTION": "Показати таблицю лідерів за кредитами, рівнем або поінтами репутації",
|
||||||
"USAGE": "[type]",
|
"USAGE": "[type]",
|
||||||
"EXAMPLES": "leaderboard type:Рівень",
|
"EXAMPLES": "leaderboard type:Рівень",
|
||||||
"LEVEL": "Рівень",
|
|
||||||
"MONEY": "Кредити",
|
|
||||||
"REP": "Репутація",
|
|
||||||
"MOBILE": ":confused: Я помітив, що ви онлайн з телефону... Таблиця лідерів може відображатися некоректно на маленьких екранах. Спробуйте пізніше з іншого пристрою",
|
"MOBILE": ":confused: Я помітив, що ви онлайн з телефону... Таблиця лідерів може відображатися некоректно на маленьких екранах. Спробуйте пізніше з іншого пристрою",
|
||||||
"TABLE": "Таблиця лідерів {{name}}"
|
"TABLE": "Таблиця лідерів {{name}}"
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Повертає аватар користувача",
|
"DESCRIPTION": "Повертає аватар користувача",
|
||||||
"USAGE": "(@user)",
|
"USAGE": "(@user)",
|
||||||
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226"
|
"EXAMPLES": "avatar\navatar user:@Jonny_Bro#4226",
|
||||||
|
"SERVER": "Аватар сервера?"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jaba",
|
"name": "jaba",
|
||||||
"version": "4.2.3",
|
"version": "4.2.5",
|
||||||
"description": "My Discord Bot",
|
"description": "My Discord Bot",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
Loading…
Reference in a new issue