mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 02:57:30 +00:00
Await awaitables
This commit is contained in:
parent
e40d060e29
commit
0c7c82aca9
1 changed files with 4 additions and 4 deletions
|
|
@ -17,18 +17,18 @@ async function reviewSkin(message) {
|
|||
async function handler(message, args) {
|
||||
let count = args[0] || 1;
|
||||
if (count > 50) {
|
||||
message.channel.send(`You can only review up to ${count} skins at a time.`);
|
||||
message.channel.send(`Going to show ${count} skins to review`);
|
||||
await message.channel.send(`You can only review up to ${count} skins at a time.`);
|
||||
await message.channel.send(`Going to show ${count} skins to review`);
|
||||
count = 50;
|
||||
}
|
||||
message.channel.send(`Going to show ${count} skins to review.`);
|
||||
await message.channel.send(`Going to show ${count} skins to review.`);
|
||||
let i = Number(count);
|
||||
while (i--) {
|
||||
await reviewSkin(message);
|
||||
}
|
||||
if (count > 1) {
|
||||
const tweetableCount = await Skins.getTweetableSkinCount();
|
||||
message.channel.send(
|
||||
await message.channel.send(
|
||||
`Done reviewing ${count} skins. There are now ${tweetableCount} Tweetable skins. Thanks!`
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue