Changed the file structure to make the command reading process clearer and improve organization

This commit is contained in:
ION606
2022-05-13 22:29:54 +03:00
parent 21040344ae
commit 2e6d41e76b
14 changed files with 13 additions and 38 deletions
+24
View File
@@ -0,0 +1,24 @@
module.exports = {
name: 'arrow',
description: 'Engage in a trademarked activity and throw an arrow at a trash can',
async execute(message, args, Discord, Client, bot) {
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;
}
}
}
}