mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
test: logging
This commit is contained in:
1 parent
799afe3de9
commit
560f033a78
1 file changed
+32
-25
+32
-25
@@ -20,7 +20,7 @@ export const CLANS = {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
inProduction: true,
|
inProduction: true,
|
||||||
inDevelopment: true,
|
inDevelopment: false,
|
||||||
inPublic: false,
|
inPublic: false,
|
||||||
|
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
@@ -122,30 +122,37 @@ export default {
|
|||||||
|
|
||||||
const eligible = issues.length === 0;
|
const eligible = issues.length === 0;
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction
|
||||||
embeds: [
|
.reply({
|
||||||
poweredByBlitzStars(
|
embeds: [
|
||||||
new EmbedBuilder()
|
poweredByBlitzStars(
|
||||||
.setTitle(
|
new EmbedBuilder()
|
||||||
`${data.nickname} is ${
|
.setTitle(
|
||||||
eligible ? '' : 'not '
|
`${data.nickname} is ${
|
||||||
}eligible for ${CLANS[clan].name}`,
|
eligible ? '' : 'not '
|
||||||
)
|
}eligible for ${CLANS[clan].name}`,
|
||||||
.setColor(eligible ? POSITIVE_COLOR : NEGATIVE_COLOR)
|
)
|
||||||
.setDescription(
|
.setColor(eligible ? POSITIVE_COLOR : NEGATIVE_COLOR)
|
||||||
`${
|
.setDescription(
|
||||||
eligible
|
`${
|
||||||
? `${data.nickname} meets all the requirements set for ${CLANS[clan].name}.`
|
eligible
|
||||||
: `${data.nickname}'s shortcomings for ${
|
? `${data.nickname} meets all the requirements set for ${CLANS[clan].name}.`
|
||||||
CLANS[clan].name
|
: `${data.nickname}'s shortcomings for ${
|
||||||
} (${
|
CLANS[clan].name
|
||||||
clan === 'sklld' ? '30 days stats' : 'career stats'
|
} (${
|
||||||
}):\n\n${issues.join('\n')}`
|
clan === 'sklld'
|
||||||
}\n\n${blitzLinks(data)}`,
|
? '30 days stats'
|
||||||
),
|
: 'career stats'
|
||||||
),
|
}):\n\n${issues.join('\n')}`
|
||||||
],
|
}\n\n${blitzLinks(data)}`,
|
||||||
});
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
console.log('nooooooooooooooooooooooooo');
|
||||||
|
console.log(e);
|
||||||
|
});
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
`Showing ${data.nickname}'s eligibility for ${CLANS[clan].name}`,
|
`Showing ${data.nickname}'s eligibility for ${CLANS[clan].name}`,
|
||||||
|
|||||||
Reference in new issue
Block a user