Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 33 additions & 26 deletions bun.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@
"prettier": "^3.6.2",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
}
},
"trustedDependencies": [
"skia-canvas"
]
}
2 changes: 1 addition & 1 deletion src/@types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ declare module 'psqlDB' {
percentile: number
isTop: boolean
}[]
previous_games: { change: number; time: Date }[]
previous_games: { change: number; time: Date; deck: string; stake: string }[]
elo_graph_data: { date: Date; rating: number }[]
rank_name?: string | null
rank_color?: string | null
Expand Down
Binary file added src/assets/BlackBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlackBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlackTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlackTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlueBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlueBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlueTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/BlueTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/GrayBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/GrayBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/GrayTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/GrayTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/HideBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/HideBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/HideTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/HideTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/RedBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/RedBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/RedTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/antiBL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/antiBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/antiTL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/antiTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/backgrounds/bgAbandoned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/backgrounds/bgAnaglyph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/backgrounds/bgBlack.png
Binary file added src/assets/backgrounds/bgBlue.png
Binary file added src/assets/backgrounds/bgCheckered.png
Binary file added src/assets/backgrounds/bgCocktail.png
Binary file added src/assets/backgrounds/bgErratic.png
Binary file added src/assets/backgrounds/bgFelt.png
Binary file added src/assets/backgrounds/bgGhost.png
Binary file added src/assets/backgrounds/bgGreen.png
Binary file added src/assets/backgrounds/bgMagic.png
Binary file added src/assets/backgrounds/bgMain.png
Binary file added src/assets/backgrounds/bgNebula.png
Binary file added src/assets/backgrounds/bgOrange.png
Binary file added src/assets/backgrounds/bgPainted.png
Binary file added src/assets/backgrounds/bgPlanet.png
Binary file added src/assets/backgrounds/bgPlasma.png
Binary file added src/assets/backgrounds/bgRed.png
Binary file added src/assets/backgrounds/bgViolet.png
Binary file added src/assets/backgrounds/bgYellow.png
Binary file added src/assets/backgrounds/bgZodiac.png
Binary file added src/assets/bgBL.png
Binary file added src/assets/bgBR.png
Binary file added src/assets/bgTL.png
Binary file added src/assets/bgTR.png
Binary file added src/assets/bonus.png
Binary file added src/assets/glass.png
Binary file added src/assets/gold.png
Binary file added src/assets/lucky.png
Binary file added src/assets/mult.png
Binary file added src/assets/redTL.png
Binary file added src/assets/standard.png
Binary file added src/assets/steel.png
Binary file added src/assets/stone.png
Binary file added src/assets/wild.png
6 changes: 3 additions & 3 deletions src/events/interactionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ export default {

if (interaction.customId.startsWith('view-stats-')) {
try {
await interaction.deferReply()
const queueName = interaction.customId.split('-')[2]
const queueId = await getQueueIdFromName(queueName)
const playerStats = await getStatsCanvasUserData(
Expand All @@ -547,14 +548,13 @@ export default {
const statFile = await drawPlayerStatsCanvas(queueName, playerStats)
const viewStatsButtons = setupViewStatsButtons(queueName)

await interaction.reply({
await interaction.editReply({
files: [statFile],
components: [viewStatsButtons],
})
} catch (err) {
await interaction.reply({
await interaction.editReply({
content: `You don't have any stats for this queue.`,
flags: [MessageFlags.Ephemeral],
})
}
}
Expand Down
Binary file added src/fonts/m6x11.ttf
Binary file not shown.
Loading