feat: /debug and /help

This commit is contained in:
TresAbhi committed 2023-04-26 14:23:42 +00:00
1 parent 91260aed2a
commit c37b90caac
11 files changed
+110 -10

No files matched your search

+4 -2
View File
@@ -13,8 +13,8 @@ export default async function getBlitzStarsAccount(
name: string,
callback: (account: PlayerStatistics) => void,
) {
function notTracked() {
interaction.reply({
async function notTracked() {
await interaction.reply({
embeds: [
new EmbedBuilder()
.setTitle('No data to display')
@@ -22,6 +22,8 @@ export default async function getBlitzStarsAccount(
.setColor(NEGATIVE_COLOR),
],
});
console.log(`${name} is not tracked by BlitzStars.`);
}
fetch(`https://www.blitzstars.com/api/top/player/${accountId}`)