mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Stop Logging Command Use
This commit is contained in:
@@ -27,7 +27,6 @@ module.exports = class BotSearchCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const botToFind = args.bot.id;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -29,7 +29,6 @@ module.exports = class DefineCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const defineThis = encodeURI(args.word);
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -32,7 +32,6 @@ module.exports = class DiscrimCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const userToSearch = args.discrim;
|
||||
const users = await this.client.users.filter(u => u.discriminator === userToSearch).map(u => u.username).sort();
|
||||
const embed = new Discord.RichEmbed()
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class ForecastCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const locationToSearch = args.locationQ;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class GoogleCommand extends commando.Command {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const thingToSearch = args.query;
|
||||
const searchMsg = await message.say('Searching...');
|
||||
try {
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class IMDBCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const queryMovie = args.movie;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = class NeopetCommand extends commando.Command {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const petID = args.pet;
|
||||
return message.say(`http://pets.neopets.com/cp/${petID}/1/5.png`);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class OsuCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const usernameToSearch = args.username;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -32,7 +32,6 @@ module.exports = class PokedexCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const pokemon = args.pokemon.toLowerCase();
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setTitle('Information')
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class UrbanCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const wordToDefine = args.word;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class WattpadCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const queryBook = args.book;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class WeatherCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const locationToSearch = args.locationQ;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class WikipediaCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const thingToSearch = args.query.split(')').join('%29');
|
||||
const title = encodeURI(thingToSearch);
|
||||
try {
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class YouTubeCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const videoToSearch = args.video;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class YuGiOhCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const cardName = encodeURI(args.card);
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
Reference in New Issue
Block a user