mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
25 lines
459 B
JavaScript
25 lines
459 B
JavaScript
const Command = require('../../framework/Command');
|
|
|
|
module.exports = class BubbleWrapCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'bubble-wrap',
|
|
group: 'games-sp',
|
|
description: 'Pop some bubble wrap.',
|
|
args: [
|
|
{
|
|
key: 'amount',
|
|
type: 'integer',
|
|
default: 156,
|
|
min: 1,
|
|
max: 250
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { amount }) {
|
|
return msg.say(new Array(amount).fill('||POP||').join(' '));
|
|
}
|
|
};
|