emoji moved to config
This commit is contained in:
parent
c0c1945b2c
commit
da570fc40b
19 changed files with 55 additions and 55 deletions
|
@ -20,7 +20,7 @@ module.exports = class {
|
|||
|
||||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
if (!args[0]) return message.channel.createMessage(
|
||||
`${client.emojis.userError} You didn't give me an ability to look up!`
|
||||
`${client.config.emojis.userError} You didn't give me an ability to look up!`
|
||||
);
|
||||
|
||||
message.channel.sendTyping();
|
||||
|
@ -53,7 +53,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.startsWith('Failed to get data for ability')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} I couldn't find any abilities with names similar to ${query}. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} I couldn't find any abilities with names similar to ${query}. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('POKEMON_API_ERROR', error.message);
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = class {
|
|||
|
||||
async run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
if (!args[0]) return message.channel.createMessage(
|
||||
`${client.emojis.userError} You didn't give me a pokemon or type combination to look up! Usage: \`${message.prefix + this.name + ' ' + this.help.arguments}\``
|
||||
`${client.config.emojis.userError} You didn't give me a pokemon or type combination to look up! Usage: \`${message.prefix + this.name + ' ' + this.help.arguments}\``
|
||||
);
|
||||
|
||||
message.channel.sendTyping();
|
||||
|
@ -48,7 +48,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.startsWith('No Pokémon found')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} I couldn't find any Pokemon with names similar to ${args.join(' ').toLowerCase()}. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} I couldn't find any Pokemon with names similar to ${args.join(' ').toLowerCase()}. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('MATCHUP_API_ERROR', error.message);
|
||||
|
@ -82,7 +82,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.includes('does not exist in "Types')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} One or more of the types you gave me are invalid. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} One or more of the types you gave me are invalid. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('MATCHUP_FETCH_ERROR', error.message);
|
||||
|
|
|
@ -20,7 +20,7 @@ module.exports = class {
|
|||
|
||||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
if (!args[0]) return message.channel.createMessage(
|
||||
`${client.emojis.userError} You didn't give me an item to look up!`
|
||||
`${client.config.emojis.userError} You didn't give me an item to look up!`
|
||||
);
|
||||
|
||||
message.channel.sendTyping();
|
||||
|
@ -54,7 +54,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.startsWith('Failed to get data for item')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} I couldn't find any items with names similar to ${query}. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} I couldn't find any items with names similar to ${query}. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('POKEMON_API_ERROR', error.message);
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = class {
|
|||
|
||||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
if (!args[0]) return message.channel.createMessage(
|
||||
`${client.emojis.userError} You didn't give me a pokemon move to look up!`
|
||||
`${client.config.emojis.userError} You didn't give me a pokemon move to look up!`
|
||||
);
|
||||
|
||||
message.channel.sendTyping();
|
||||
|
@ -66,7 +66,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.startsWith('Failed to get data for move')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} I couldn't find any moves with names similar to ${query}. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} I couldn't find any moves with names similar to ${query}. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('POKEMON_API_ERROR', error.message);
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = class {
|
|||
|
||||
async run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
if (!args[0]) return message.channel.createMessage(
|
||||
`${client.emojis.userError} You didn't give me a pokemon to look up!`
|
||||
`${client.config.emojis.userError} You didn't give me a pokemon to look up!`
|
||||
);
|
||||
|
||||
message.channel.sendTyping();
|
||||
|
@ -69,7 +69,7 @@ module.exports = class {
|
|||
json.errors.forEach(error => {
|
||||
if (error.message.startsWith('No Pokémon found')) {
|
||||
message.channel.createMessage(
|
||||
`${client.emojis.userError} I couldn't find any Pokemon with names similar to ${query}. Check your spelling, maybe?`
|
||||
`${client.config.emojis.userError} I couldn't find any Pokemon with names similar to ${query}. Check your spelling, maybe?`
|
||||
);
|
||||
} else {
|
||||
client.logger.error('POKEMON_API_ERROR', error.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue