mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
String Changes, Don't register tons of defaults
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = class AppStoreCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Something went wrong!");
|
||||
return message.say(':x: Error! Something went wrong!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -51,7 +51,7 @@ module.exports = class BotSearchCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Bot not Found!");
|
||||
return message.say(':x: Error! Bot not Found!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = class DefineCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Word not Found!");
|
||||
return message.say(':x: Error! Word not Found!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = class ForecastCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Make sure you typed the location correctly!");
|
||||
return message.say(':x: Error! Make sure you typed the location correctly!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = class NeopetCommand extends commando.Command {
|
||||
name: 'neopet',
|
||||
group: 'search',
|
||||
memberName: 'neopet',
|
||||
description: "Gives a Neopet's image, searchable by ID. (;neopet rjwlsb8k)",
|
||||
description: 'Gives a Neopet\'s image, searchable by ID. (;neopet rjwlsb8k)',
|
||||
examples: [';neopet rjwlsb8k'],
|
||||
args: [{
|
||||
key: 'pet',
|
||||
|
||||
@@ -70,7 +70,7 @@ module.exports = class OsuCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! User not Found!");
|
||||
return message.say(':x: Error! User not Found!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ module.exports = class PokedexCommand extends commando.Command {
|
||||
.setAuthor(`#${pokedex.index[pokemon]} ${pokedex.name[pokemon]}`, `http://www.serebii.net/pokedex-sm/icon/${pokedex.index[pokemon]}.png`)
|
||||
.setColor(0xFF0000)
|
||||
.setDescription(pokedex.species[pokemon])
|
||||
.setFooter("Pokédex", "http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png")
|
||||
.setFooter('Pokédex', 'http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png')
|
||||
.setThumbnail(`http://www.serebii.net/sunmoon/pokemon/${pokedex.index[pokemon]}.png`)
|
||||
.addField('Entry',
|
||||
pokedex.entry[pokemon])
|
||||
|
||||
@@ -2,7 +2,7 @@ const commando = require('discord.js-commando');
|
||||
const Discord = require('discord.js');
|
||||
const request = require('superagent');
|
||||
|
||||
module.exports = class UrbanDictionary extends commando.Command {
|
||||
module.exports = class UrbanCommand extends commando.Command {
|
||||
constructor(Client) {
|
||||
super(Client, {
|
||||
name: 'urban',
|
||||
|
||||
@@ -57,7 +57,7 @@ module.exports = class WattpadCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Book not Found!");
|
||||
return message.say(':x: Error! Book not Found!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -64,7 +64,7 @@ module.exports = class WeatherCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Make sure you typed the location correctly!");
|
||||
return message.say(':x: Error! Make sure you typed the location correctly!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = class WikipediaCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const thingToSearch = args.query.split(")").join("%29");
|
||||
const thingToSearch = args.query.split(')').join('%29');
|
||||
const title = encodeURI(thingToSearch);
|
||||
try {
|
||||
const response = await request
|
||||
@@ -44,12 +44,12 @@ module.exports = class WikipediaCommand extends commando.Command {
|
||||
.setColor(0xE7E7E7)
|
||||
.setTitle(data.title)
|
||||
.setURL(`https://en.wikipedia.org/wiki/${title}`)
|
||||
.setAuthor("Wikipedia", "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png")
|
||||
.setAuthor('Wikipedia', 'https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png')
|
||||
.setDescription(description);
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Entry Not Found!");
|
||||
return message.say(':x: Error! Entry Not Found!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = class YouTubeCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Something went wrong! Maybe no video was found?");
|
||||
return message.say(':x: Error! Something went wrong! Maybe no video was found?');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = class YuGiOhCommand extends commando.Command {
|
||||
return message.embed(embed);
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(":x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!");
|
||||
return message.say(':x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user