mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36:54 +00:00
25 lines
816 B
JavaScript
25 lines
816 B
JavaScript
|
|
module.exports = {
|
||
|
|
name: 'arrow',
|
||
|
|
description: 'Engage in a trademarked activity and throw an arrow at a trash can',
|
||
|
|
async execute(message, args) {
|
||
|
|
let counter = 0;
|
||
|
|
arrow = '>';
|
||
|
|
while (true) {
|
||
|
|
arrow = '-' + arrow;
|
||
|
|
message.channel.send(arrow);
|
||
|
|
await message.channel.messages.fetch({limit: 1}).then(messages => {
|
||
|
|
message.channel.bulkDelete(messages);
|
||
|
|
});
|
||
|
|
counter ++;
|
||
|
|
if (counter >= 5) {
|
||
|
|
message.channel.messages.fetch({limit: 1}).then(messages => {
|
||
|
|
message.channel.bulkDelete(messages);
|
||
|
|
});
|
||
|
|
arrow = arrow + '🗑️';
|
||
|
|
message.channel.send(arrow);
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|