mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: encode images on a separate thread
This commit is contained in:
1 parent
804fa58d27
commit
58c68968e7
18 files changed
+42
-63
No files matched your search
@@ -46,7 +46,5 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log("Displaying bot's debug information");
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -171,9 +171,5 @@ export default {
|
||||
? [positiveEmbed(title, body)]
|
||||
: [negativeEmbed(title, body)],
|
||||
});
|
||||
|
||||
console.log(
|
||||
`Displaying ${server}/${id}'s eligibility information for ${clan}`,
|
||||
);
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -39,7 +39,5 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log('Displaying help information');
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -83,10 +83,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(
|
||||
`Displaying inactive members in ${clanInfo[id].name} for ${threshold} days`,
|
||||
);
|
||||
},
|
||||
|
||||
autocomplete: clanAutocomplete,
|
||||
|
||||
@@ -93,10 +93,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(
|
||||
`Displaying ${accountInfo[id].nickname}'s owned tanks in tier ${tier}`,
|
||||
);
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
@@ -75,8 +75,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`Displaying player info for ${accounts[id].nickname}`);
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
@@ -59,8 +59,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`Displaying player info for ${accountInfo.nickname}`);
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
@@ -50,7 +50,5 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`Clan search results for "${clan}"`);
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -58,7 +58,5 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`Player search results for "${name}"`);
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -41,7 +41,5 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`Tank search results for "${tank}"`);
|
||||
},
|
||||
} satisfies CommandRegistry;
|
||||
@@ -173,7 +173,6 @@ export default {
|
||||
components: [actionRow],
|
||||
});
|
||||
|
||||
console.log(`Showing stats for ${accountInfo[id].nickname}`);
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
@@ -116,8 +116,6 @@ export default {
|
||||
files: [image],
|
||||
components: [actionRow],
|
||||
});
|
||||
|
||||
console.log(`Showing stats for ${accountInfo[id].nickname}`);
|
||||
},
|
||||
|
||||
autocomplete: (interaction) => {
|
||||
|
||||
@@ -194,7 +194,6 @@ export default {
|
||||
components: [actionRow],
|
||||
});
|
||||
|
||||
console.log(`Showing daily breakdown for ${accountInfo[id].nickname}`);
|
||||
},
|
||||
|
||||
autocomplete: usernameAutocomplete,
|
||||
|
||||
@@ -48,10 +48,6 @@ export default {
|
||||
],
|
||||
});
|
||||
|
||||
console.warn(
|
||||
`${interaction.user.username} failed to verify because of no nickname permission.`,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,10 +79,6 @@ export default {
|
||||
],
|
||||
});
|
||||
|
||||
console.warn(
|
||||
`${interaction.user.username} failed to verify because of no manage roles permission.`,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -106,10 +98,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(
|
||||
`${interaction.user.username} verified as ${accountInfo[id].nickname}${clanTag}`,
|
||||
);
|
||||
} catch (error) {
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
@@ -121,8 +109,6 @@ export default {
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.warn('Failed to verify because of higher permissions.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user