mirror of
https://github.com/Wessel/yorushika.git
synced 2026-06-08 14:18:31 +02:00
Add emotes and small fixes
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
error : 0xff0000 # Red
|
error : 0xff0000 # Red
|
||||||
cooldown: 0x7289DA # Blurple
|
cooldown: 0x7289DA # Blurple
|
||||||
|
|
||||||
|
core :
|
||||||
|
locale: 0x7289DA # Blurple
|
||||||
|
|
||||||
util :
|
util :
|
||||||
ping :
|
ping :
|
||||||
0 : 0xffa500 # Orange
|
0 : 0xffa500 # Orange
|
||||||
|
|||||||
@@ -2,6 +2,18 @@ cooldown : <:sad:500719642403405824> # On cooldown
|
|||||||
owner_only: <:sad:500719642403405824> # Only owners
|
owner_only: <:sad:500719642403405824> # Only owners
|
||||||
guild_only: <:sad:500719642403405824> # Only guilds
|
guild_only: <:sad:500719642403405824> # Only guilds
|
||||||
|
|
||||||
|
core :
|
||||||
|
locale:
|
||||||
|
0 : <:wumpus_blob:541629681120837648> # Dupe locale (user)
|
||||||
|
1 : <:wumpus_blob:541629681120837648> # Dupe locale (guild)
|
||||||
|
2 : <:wumpus_love:506200781549076482> # Current locale (user)
|
||||||
|
3 : <:wumpus_love:506200781549076482> # Current locale (guild)
|
||||||
|
4 : <:wumpus_flag:495525134220787713> # Locale list
|
||||||
|
5 : <:ok_hand:497396122416054287> # Updated (guild)
|
||||||
|
6 : <:ok_hand:497396122416054287> # Updated (user)
|
||||||
|
7 : <:sad:500719642403405824> # Invalid locale
|
||||||
|
8 :
|
||||||
|
|
||||||
util :
|
util :
|
||||||
ping :
|
ping :
|
||||||
0 : <:bored:500719642164199425> # Pinging
|
0 : <:bored:500719642164199425> # Pinging
|
||||||
|
|||||||
@@ -30,15 +30,15 @@ core :
|
|||||||
- '$[emoji#2] **>** Your current locale is `$[uLocale:code]`'
|
- '$[emoji#2] **>** Your current locale is `$[uLocale:code]`'
|
||||||
- '$[emoji#3] **>** The guild''s locale is `$[gLocale:code]`'
|
- '$[emoji#3] **>** The guild''s locale is `$[gLocale:code]`'
|
||||||
- ''
|
- ''
|
||||||
- '$[emoji#3] **Available locales**:'
|
- '$[emoji#4] **Available locales**:'
|
||||||
- '$[locale:map]'
|
- '$[locale:map]'
|
||||||
- ''
|
- ''
|
||||||
- 'Type `$[locale:changeCmd]` to update your/the guild''s locale'
|
- 'Type `$[locale:changeCmd]` to update your/the guild''s locale'
|
||||||
- 'If you want to help translate wump, you can join my [Discord](https://discord.gg/SV7DAE9) and create a pull request on my [GitHub](https://github.com/PassTheWessel/wump/compare)'
|
- 'If you want to help translate wump, you can join my [Discord](https://discord.gg/SV7DAE9) and create a pull request on my [GitHub](https://github.com/PassTheWessel/wump/compare)'
|
||||||
gchanged: '$[emoji#4] The guild''s locale changed to `$[gLocale:code]`'
|
gchanged: '$[emoji#5] The guild''s locale changed to `$[gLocale:code]`'
|
||||||
changed : '$[emoji#4] Your locale has changed to `$[uLocale:code]`'
|
changed : '$[emoji#6] Your locale has changed to `$[uLocale:code]`'
|
||||||
invalid : '$[emoji#5] The locale you provided isn''t a valid locale'
|
invalid : '$[emoji#7] The locale you provided isn''t a valid locale'
|
||||||
gperms : '$[emoji#6] You''re missing permissions in order to execute this command (`MANAGE_GUILD`)'
|
gperms : '$[emoji#8] You''re missing permissions in order to execute this command (`MANAGE_GUILD`)'
|
||||||
|
|
||||||
util :
|
util :
|
||||||
ping :
|
ping :
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ cooldown: '$[emoji#0] $[author:mention] **>** Dit commando is op cooldown voor *
|
|||||||
core :
|
core :
|
||||||
locale :
|
locale :
|
||||||
dupe : '$[emoji#0] Uw landinstelling is al ingesteld op `$[uLocale:code]`'
|
dupe : '$[emoji#0] Uw landinstelling is al ingesteld op `$[uLocale:code]`'
|
||||||
gdupe : '$[emoji#1] The guild''s locale is already set to `$[gLocale:code]`'
|
gdupe : '$[emoji#1] De landinstelling van de gilde is al ingesteld op `$[gLocale:code]`'
|
||||||
list :
|
list :
|
||||||
- '$[emoji#2] **>** Uw huidige landinstelling is `$[uLocale:code]`'
|
- '$[emoji#2] **>** Uw huidige landinstelling is `$[uLocale:code]`'
|
||||||
- '$[emoji#3] **>** De landinstelling van de gilde is `$[gLocale:code]`'
|
- '$[emoji#3] **>** De landinstelling van de gilde is `$[gLocale:code]`'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module.exports = class Locale extends DiscordCommand {
|
|||||||
name : 'locale',
|
name : 'locale',
|
||||||
syntax : 'locale <locale:code> <-u|-g>',
|
syntax : 'locale <locale:code> <-u|-g>',
|
||||||
aliases : [],
|
aliases : [],
|
||||||
argument : [ '-<u|g>', '<locale:code' ],
|
argument : [ '<locale:code>', '-<u|g>' ],
|
||||||
description : 'Change your locale',
|
description : 'Change your locale',
|
||||||
|
|
||||||
hidden : false,
|
hidden : false,
|
||||||
@@ -23,7 +23,7 @@ module.exports = class Locale extends DiscordCommand {
|
|||||||
|
|
||||||
async execute(msg, args, user, guild) {
|
async execute(msg, args, user, guild) {
|
||||||
if (args.join(' ').includes('-u') || args.join(' ').includes('--user')) {
|
if (args.join(' ').includes('-u') || args.join(' ').includes('--user')) {
|
||||||
for (let i = 0; i < args.length; i++) !this.bot.locales.has(args[i]) ? args.splice(i, 1) : undefined;
|
for (let i = 0; i < args.length; i++) !this.bot.locales.has(args[i]) ? args.splice(i, -1) : undefined;
|
||||||
if (!this.bot.locales.has(args[0])) return msg.channel.createMessage(this.localize(msg.author.locale['core']['locale']['invalid']));
|
if (!this.bot.locales.has(args[0])) return msg.channel.createMessage(this.localize(msg.author.locale['core']['locale']['invalid']));
|
||||||
if (user.locale === args[0]) return msg.channel.createMessage(this.localize(msg.author.locale['core']['locale']['dupe'], { uLocale: user.locale }));
|
if (user.locale === args[0]) return msg.channel.createMessage(this.localize(msg.author.locale['core']['locale']['dupe'], { uLocale: user.locale }));
|
||||||
|
|
||||||
@@ -43,6 +43,7 @@ module.exports = class Locale extends DiscordCommand {
|
|||||||
} else {
|
} else {
|
||||||
return msg.channel.createMessage({
|
return msg.channel.createMessage({
|
||||||
embed: {
|
embed: {
|
||||||
|
color : this.bot.col['core']['locale'],
|
||||||
description: this.localize(msg.author.locale['core']['locale']['list'].join('\n'), { uLocale: user.locale || 'en_us', gLocale: guild.locale || 'en_us' })
|
description: this.localize(msg.author.locale['core']['locale']['list'].join('\n'), { uLocale: user.locale || 'en_us', gLocale: guild.locale || 'en_us' })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user