mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Transitioned all Misc, audio, Selmer Specific, admin, anime/manga, and inventory commands to Slash Command format. The RSS and reactionrole commands are still broken and all game commands are still in message format due to compications
This commit is contained in:
@@ -1,24 +1,15 @@
|
||||
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;
|
||||
async execute(interaction, Discord, Client, bot) {
|
||||
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;
|
||||
}
|
||||
await interaction.reply(arrow);
|
||||
for (let i = 0; i < 5; i++) {
|
||||
arrow = '-' + arrow
|
||||
await interaction.editReply(arrow);
|
||||
}
|
||||
}
|
||||
|
||||
arrow = arrow + '🗑️';
|
||||
await interaction.editReply(arrow);
|
||||
}, options: []
|
||||
}
|
||||
Reference in New Issue
Block a user