2018-12-31 21:00:02 +01:00
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
class bsespamCommand extends Command {
|
2019-01-02 08:09:45 +01:00
|
|
|
constructor() {
|
|
|
|
super('bsespam', {
|
|
|
|
aliases: ['bsespam'] , //Required
|
|
|
|
category: 'reserved', //recommended
|
|
|
|
channelRestriction: 'guild', //needed if you want to restrict where we can launch the command
|
2019-01-04 10:36:55 +01:00
|
|
|
cooldown: 3600,
|
|
|
|
ratelimit: 2,
|
2019-01-02 08:09:45 +01:00
|
|
|
args: [ //if need args
|
|
|
|
{
|
|
|
|
id: 'number',
|
|
|
|
type: 'interger',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'text',
|
2019-01-10 20:45:29 +01:00
|
|
|
type: 'string',
|
|
|
|
match: 'rest'
|
2019-01-02 08:09:45 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
description: { //recommended
|
|
|
|
content: 'ONLY FOR BIG SNOW ENERGY\nSpam the text you send',
|
|
|
|
usage: '[args]',
|
|
|
|
examples: ['']
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2018-12-31 21:00:02 +01:00
|
|
|
|
2019-01-02 08:09:45 +01:00
|
|
|
async exec(message, args) {
|
|
|
|
if (message.author.id != '428387534842626048')
|
2019-03-23 15:17:19 +01:00
|
|
|
return;
|
2019-01-02 08:09:45 +01:00
|
|
|
if (args.number <= 10) {
|
|
|
|
for(let i = 0; i < args.number; i++) {
|
|
|
|
message.channel.send(args.text);
|
|
|
|
}
|
|
|
|
return message.channel.send('Finished :)');
|
|
|
|
} else {
|
|
|
|
return message.channel.send('No more than 10!');
|
|
|
|
}
|
|
|
|
}
|
2018-12-31 21:00:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = bsespamCommand;
|