Initial Commit

This commit is contained in:
Daniel Odendahl
2017-03-02 18:23:16 -05:00
commit 3feaf2a99b
178 changed files with 3840 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
const commando = require('discord.js-commando');
class CanYouNot extends commando.Command {
constructor(Client){
super(Client, {
name: 'canyounot',
group: 'random',
memberName: 'canyounot',
description: 'Can YOU not? (;canyounot)',
examples: [';canyounot']
});
}
async run(message, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
message.reply('Can YOU not?');
}
}
module.exports = CanYouNot;
+24
View File
@@ -0,0 +1,24 @@
const commando = require('discord.js-commando');
class GiveFlowerCommand extends commando.Command {
constructor(Client){
super(Client, {
name: 'giveflower',
group: 'random',
memberName: 'giveflower',
description: 'Gives Xiao Pai a flower. (;giveflower)',
examples: [';giveflower']
});
}
async run(message, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
message.reply('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪');
}
}
module.exports = GiveFlowerCommand;
+29
View File
@@ -0,0 +1,29 @@
const commando = require('discord.js-commando');
class LotteryCommand extends commando.Command {
constructor(Client){
super(Client, {
name: 'lottery',
group: 'random',
memberName: 'lottery',
description: '1 in 100 Chance of Winning. Winners get... The feeling of winning? (;lottery)',
examples: [';lottery']
});
}
async run(message, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
let lotterynumber = ['Winner'][Math.floor(Math.random() * 100)];
if(lotterynumber === "Winner") {
message.reply("Wow! You actually won! Great job!");
} else {
message.reply("Nope, sorry, you lost. RIP you.");
}
}
}
module.exports = LotteryCommand;
+24
View File
@@ -0,0 +1,24 @@
const commando = require('discord.js-commando');
class SlowClapCommand extends commando.Command {
constructor(Client){
super(Client, {
name: 'slowclap',
group: 'random',
memberName: 'slowclap',
description: '*Slow Clap*. (;slowclap)',
examples: [';slowclap']
});
}
async run(message, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
message.reply('*slow clap*');
}
}
module.exports = SlowClapCommand;
+26
View File
@@ -0,0 +1,26 @@
const commando = require('discord.js-commando');
class SpamCommand extends commando.Command {
constructor(Client){
super(Client, {
name: 'spam',
group: 'random',
memberName: 'spam',
description: 'Puts a picture of Spam. (;spam)',
examples: [';spam']
});
}
async run(message, args) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return;
}
console.log("[Command] " + message.content);
message.reply("Spam!");
message.channel.sendFile("./images/Spam.jpg");
}
}
module.exports = SpamCommand;