mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Stop Logging Command Use
This commit is contained in:
@@ -27,7 +27,6 @@ module.exports = class BinaryCommand 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 turnToBinary = args.text;
|
||||
const binaryText = stringToBinary(turnToBinary);
|
||||
return message.say(binaryText);
|
||||
|
||||
@@ -21,7 +21,6 @@ module.exports = class CowsayCommand 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 turnToCowsay = args.text;
|
||||
return message.code(null, cowsay.say({
|
||||
text: turnToCowsay,
|
||||
|
||||
@@ -24,7 +24,6 @@ module.exports = class EmbedCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('MANAGE_MESSAGES')) return message.say(':x: Error! I don\'t have the Manage Messages Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const embedMessage = args.text;
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setAuthor(message.author.username, message.author.avatarURL)
|
||||
|
||||
@@ -30,7 +30,6 @@ module.exports = class MorseCommand 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 toMorse = args.text;
|
||||
const morseEncoded = morse.encode(toMorse);
|
||||
return message.say(morseEncoded);
|
||||
|
||||
@@ -31,7 +31,6 @@ module.exports = class PirateCommand 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 turnToPirate = args.text;
|
||||
const pirate = pirateSpeak.translate(turnToPirate);
|
||||
if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!');
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = class ReverseCommand 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 stringToReverse = args.text;
|
||||
const reversed = stringToReverse.split('').reverse().join('');
|
||||
return message.say(`\u180E${reversed}`);
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class RomajiCommand 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 romajify = args.kana;
|
||||
const romajified = hepburn.fromKana(romajify);
|
||||
return message.say(romajified);
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = class SayCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('MANAGE_MESSAGES')) return message.say(':x: Error! I don\'t have the Manage Messages Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const copycat = args.text;
|
||||
await message.delete();
|
||||
return message.say(`\u180E${copycat}`);
|
||||
|
||||
@@ -32,7 +32,6 @@ module.exports = class ShuffleCommand 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 thingToShuffle = args.text;
|
||||
return message.say(`\u180E${thingToShuffle.shuffle()}`);
|
||||
}
|
||||
|
||||
@@ -135,7 +135,6 @@ module.exports = class TranslateCommand 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 languageto = args.to.toLowerCase();
|
||||
const query = args.text;
|
||||
try {
|
||||
|
||||
@@ -30,7 +30,6 @@ module.exports = class WebhookCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('MANAGE_MESSAGES')) return message.say(':x: Error! I don\'t have the Manage Messages Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const content = args.text;
|
||||
try {
|
||||
await message.delete();
|
||||
|
||||
@@ -21,7 +21,6 @@ module.exports = class YodaCommand 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 turnToYoda = args.text;
|
||||
try {
|
||||
const response = await request
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class ZalgoCommand 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 zalgoified = zalgo(args.text);
|
||||
return message.say(`\u180E${zalgoified}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user