The Ultimate Formatting is Done

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 03:37:20 +00:00
parent 3b007758aa
commit f810181c11
102 changed files with 222 additions and 224 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class CanYouNot 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);
console.log(`[Command] ${message.content}`);
message.channel.send('Can YOU not?');
}
};
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class GiveFlowerCommand 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);
console.log(`[Command] ${message.content}`);
message.channel.send('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪');
}
};
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class LennyCommand 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);
console.log(`[Command] ${message.content}`);
message.channel.send('( ͡° ͜ʖ ͡°)');
}
};
+3 -3
View File
@@ -15,13 +15,13 @@ module.exports = class LotteryCommand 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);
console.log(`[Command] ${message.content}`);
let lotteryNumber = ['Winner'][Math.floor(Math.random() * 100)];
if (lotteryNumber === "Winner") {
message.channel.send("Wow " + message.author.username + "! You actually won! Great job!");
message.channel.send(`Wow ${message.author.username}! You actually won! Great job!`);
}
else {
message.channel.send("Nope, sorry, " + message.author.username + ", you lost.");
message.channel.send(`Nope, sorry ${message.author.username}, you lost.`);
}
}
};
+2 -2
View File
@@ -17,7 +17,7 @@ module.exports = class MathGameCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
let [level] = message.content.toLowerCase().split(" ").slice(1);
let randomType = ['+', '-', '*'];
randomType = randomType[Math.floor(Math.random() * randomType.length)];
@@ -55,7 +55,7 @@ module.exports = class MathGameCommand extends commando.Command {
}).then((collected) => {
message.channel.send(`Good Job! You won!`);
}).catch(() => {
message.channel.send('Aw... Too bad, try again next time! The correct answer was: ' + solved);
message.channel.send(`Aw... Too bad, try again next time! The correct answer was: ${solved}`);
});
});
}
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class NitroCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
const embed = new Discord.RichEmbed()
.setAuthor("Discord Nitro")
.setThumbnail("https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg")
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class SlowClapCommand 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);
console.log(`[Command] ${message.content}`);
message.channel.send('*slow clap*');
}
};
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class SoundBoardCommand 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);
console.log(`[Command] ${message.content}`);
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['CONNECT', 'SPEAK', 'ADD_REACTIONS'])) {
message.channel.send(':x: Error! In order to do this command, you must give me the permissions to "Connect" and "Speak", as well as the permission to Add Reactions!');
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class SpamCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
message.channel.sendFile("./images/Spam.jpg");
}
};
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class TypingGameCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log(`[Command] ${message.content}`);
let [level] = message.content.toLowerCase().split(" ").slice(1);
let randomSentence = ['The quick brown fox jumps over the lazy dog.', 'Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.', 'How razorback-jumping frogs can level six piqued gymnasts!', 'Amazingly few discotheques provide jukeboxes.'];
randomSentence = randomSentence[Math.floor(Math.random() * randomSentence.length)];