mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Initial Commit
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user