From e97c370edf12173bf026f9c032a44f0951dec0ff Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:04:05 +1100 Subject: [PATCH] Add missing font to Docker container --- Dockerfile | 3 ++- src/commands/rank.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ded643a..e3d28cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ FROM node:21.7.1-alpine3.19 ENV YARN_VERSION 4.1.1 ENV TZ Australia/Sydney RUN yarn policies set-version $YARN_VERSION -RUN apk update && apk upgrade && apk add --no-cache git fontconfig && npm install -g typescript +RUN apk update && apk upgrade && apk add --no-cache git fontconfig ttf-dejavu WORKDIR /Daggerbot +RUN npm install -g typescript RUN git config --global --add safe.directory /Daggerbot COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./ RUN yarn diff --git a/src/commands/rank.ts b/src/commands/rank.ts index 0c90f69..61f9845 100644 --- a/src/commands/rank.ts +++ b/src/commands/rank.ts @@ -33,7 +33,7 @@ export default class Rank { if (data.length < 2) return interaction.reply('Not enough data to generate graph.'); const graph = await CanvasBuilder.generateGraph(data, 'leaderboard'); - interaction.reply({ + await interaction.reply({ embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Leaderboard') .setDescription(MessageTool.concatMessage( `Level System was created **${Math.floor((Date.now()-client.config.LRSstart)/1000/60/60/24)}** days ago.`,