added some new fields for help
This commit is contained in:
		
							parent
							
								
									7f6d54f14b
								
							
						
					
					
						commit
						7464316789
					
				
					 17 changed files with 88 additions and 51 deletions
				
			
		| 
						 | 
					@ -10,13 +10,14 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Test response time between Woomy and Discord.',
 | 
					            description: 'Test response time between Woomy and Discord.',
 | 
				
			||||||
            usage: 'ping',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: null
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        message.channel.createMessage(client.constants.responses.ping.random())
 | 
					        message.channel.createMessage(client.constants.replies.ping.random())
 | 
				
			||||||
            .then(m => {
 | 
					            .then(m => {
 | 
				
			||||||
                m.edit(`${m.content} \`roundtrip: ${m.timestamp - message.timestamp}ms | websocket: ${message.channel.guild.shard.latency}ms\``);
 | 
					                m.edit(`${m.content} \`roundtrip: ${m.timestamp - message.timestamp}ms | websocket: ${message.channel.guild.shard.latency}ms\``);
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Add, remove or list users on the blocklist for this server. User\'s on the blocklist cannot use my commands.',
 | 
					            description: 'Add, remove or list users on the blocklist for this server. User\'s on the blocklist cannot use my commands.',
 | 
				
			||||||
            usage: 'blocklist <add | remove | list> <user>',
 | 
					            arguments: '<add | remove | list> <user>',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: 'blocklist list\nblocklist add @Veemo\nblocklist remove emily'
 | 
					            examples: 'blocklist list\nblocklist add @Veemo\nblocklist remove emily'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: 'description',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '[command/category]',
 | 
				
			||||||
 | 
					            details: '`command/category` - choose whether to disable a command or a category.',
 | 
				
			||||||
            examples: 'examples'
 | 
					            examples: 'examples'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) {
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) {
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) {
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) {
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 5000,
 | 
					        this.cooldown = 5000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Sets your own personal prefix for woomy, that works across all the servers you\'re in!',
 | 
					            description: 'Sets your own personal prefix for woomy, that works across all the servers you\'re in!',
 | 
				
			||||||
            usage: 'userprefix` <new prefix>',
 | 
					            arguments: '[new prefix]',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: 'userprefix w! - sets your personal prefix to woomy'
 | 
					            examples: 'userprefix w! - sets your personal prefix to woomy'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    run (client, message, args, data) {
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 0,
 | 
					        this.cooldown = 0,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Evalutes and executes JavaScript code.',
 | 
					            description: 'Evalutes and executes JavaScript code.',
 | 
				
			||||||
            usage: 'eval <code>',
 | 
					            arguments: '<code>',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: 'eval this.client.deleteCapitalism()'
 | 
					            examples: 'eval this.client.deleteCapitalism()'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 0,
 | 
					        this.cooldown = 0,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Reloads all commands and event modules.',
 | 
					            description: 'Reloads all commands and event modules.',
 | 
				
			||||||
            usage: 'reload',
 | 
					            arguments: '',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: undefined
 | 
					            examples: undefined
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Shows you colours that can be random, a hex code or generated from the words you type into the command.',
 | 
					            description: 'Shows you colours that can be random, a hex code or generated from the words you type into the command.',
 | 
				
			||||||
            usage: 'colour <hexcode | text>',
 | 
					            arguments: '[hexcode/text]',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: '`colour` - generates a random colour\n`colour #ee79ff` - Displays the colour of this hexcode\n`colour alpaca` - Generates a colour from the word alpaca'
 | 
					            examples: '`colour` - generates a random colour\n`colour #ee79ff` - Displays the colour of this hexcode\n`colour alpaca` - Generates a colour from the word alpaca'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,8 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Sends you a strip from the best comic ever',
 | 
					            description: 'Sends you a strip from the best comic ever',
 | 
				
			||||||
            usage: 'garfield <daily>',
 | 
					            arguments: '[daily]',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: '`garfield` - sends a random garfield comic strip\n`garfield daily` - sends the daily strip'
 | 
					            examples: '`garfield` - sends a random garfield comic strip\n`garfield daily` - sends the daily strip'
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					@ -22,19 +23,18 @@ module.exports = class {
 | 
				
			||||||
        let date = 'xxxx';
 | 
					        let date = 'xxxx';
 | 
				
			||||||
        if (args[0] && args[0].toLowerCase() === 'daily') date = new Date();
 | 
					        if (args[0] && args[0].toLowerCase() === 'daily') date = new Date();
 | 
				
			||||||
        message.channel.sendTyping();
 | 
					        message.channel.sendTyping();
 | 
				
			||||||
        try {
 | 
					        fetch('https://garfield-comics.glitch.me/~SRoMG/?date=' + date)
 | 
				
			||||||
            fetch('https://garfield-comics.glitch.me/~SRoMG/?date=' + date)
 | 
					            .then(res => res.json())
 | 
				
			||||||
                .then(res => res.json())
 | 
					            .then(json => {
 | 
				
			||||||
                .then(json => {
 | 
					                const embed = new Embed()
 | 
				
			||||||
                    const embed = new Embed()
 | 
					                    .setTitle(`${json.data.name} (No. ${json.data.number})`)
 | 
				
			||||||
                        .setTitle(`${json.data.name} (No. ${json.data.number})`)
 | 
					                    .setColour(client.functions.displayHexColour(message.channel.guild, client.user.id))
 | 
				
			||||||
                        .setColour(client.functions.displayHexColour(message.channel.guild, client.user.id))
 | 
					                    .setURL('https://www.mezzacotta.net/garfield/?comic=' + json.data.number)
 | 
				
			||||||
                        .setURL('https://www.mezzacotta.net/garfield/?comic=' + json.data.number)
 | 
					                    .setImage(json.data.image.src);
 | 
				
			||||||
                        .setImage(json.data.image.src);
 | 
					                message.channel.createMessage({ embed: embed });
 | 
				
			||||||
                    message.channel.createMessage({ embed: embed });
 | 
					            })
 | 
				
			||||||
                });
 | 
					            .catch(err => {
 | 
				
			||||||
        } catch (err) {
 | 
					                message.channel.createMessage(`${client.constants.emojis.botError} An error has occurred: ${err}`);
 | 
				
			||||||
            message.channel.send(`${client.constants.emojis.botError} An error has occurred: ${err}`);
 | 
					            });
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Generates a random (and likely terrible) inspirational quote. Makes use of the Inspirobot API.',
 | 
					            description: 'Generates a random (and likely terrible) inspirational quote.',
 | 
				
			||||||
            usage: 'inspirobot',
 | 
					            arguments: '',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
            examples: null
 | 
					            examples: null
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										22
									
								
								bot/commands/Moderation/kick.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								bot/commands/Moderation/kick.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,22 @@
 | 
				
			||||||
 | 
					module.exports = class {
 | 
				
			||||||
 | 
					    constructor (name, category) {
 | 
				
			||||||
 | 
					        this.name = name,
 | 
				
			||||||
 | 
					        this.category = category,
 | 
				
			||||||
 | 
					        this.enabled = true,
 | 
				
			||||||
 | 
					        this.devOnly = false,
 | 
				
			||||||
 | 
					        this.aliases = [],
 | 
				
			||||||
 | 
					        this.userPerms = [],
 | 
				
			||||||
 | 
					        this.botPerms = [],
 | 
				
			||||||
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
 | 
					        this.help = {
 | 
				
			||||||
 | 
					            description: '',
 | 
				
			||||||
 | 
					            arguments: '',
 | 
				
			||||||
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    run (client, message, args, data) { //eslint-disable-line no-unused-vars
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,9 @@ module.exports = class {
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'Say hi!',
 | 
					            description: 'Say hi!',
 | 
				
			||||||
            usage: 'hello',
 | 
					            arguments: 'hello',
 | 
				
			||||||
            examples: null
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,9 +9,10 @@ module.exports = class {
 | 
				
			||||||
        this.botPerms = [],
 | 
					        this.botPerms = [],
 | 
				
			||||||
        this.cooldown = 2000,
 | 
					        this.cooldown = 2000,
 | 
				
			||||||
        this.help = {
 | 
					        this.help = {
 | 
				
			||||||
            description: 'description',
 | 
					            description: '',
 | 
				
			||||||
            usage: 'usage',
 | 
					            arguments: '',
 | 
				
			||||||
            examples: 'examples'
 | 
					            details: '',
 | 
				
			||||||
 | 
					            examples: ''
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue