mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Add missing font to Docker container
This commit is contained in:
parent
57122ae9db
commit
433ae89769
@ -2,8 +2,9 @@ FROM node:21.7.1-alpine3.19
|
|||||||
ENV YARN_VERSION 4.1.1
|
ENV YARN_VERSION 4.1.1
|
||||||
ENV TZ Australia/Sydney
|
ENV TZ Australia/Sydney
|
||||||
RUN yarn policies set-version $YARN_VERSION
|
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
|
WORKDIR /Daggerbot
|
||||||
|
RUN npm install -g typescript
|
||||||
RUN git config --global --add safe.directory /Daggerbot
|
RUN git config --global --add safe.directory /Daggerbot
|
||||||
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./
|
COPY tsconfig.json package.json yarn.lock .yarnrc.yml ./
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
@ -33,7 +33,7 @@ export default class Rank {
|
|||||||
if (data.length < 2) return interaction.reply('Not enough data to generate graph.');
|
if (data.length < 2) return interaction.reply('Not enough data to generate graph.');
|
||||||
|
|
||||||
const graph = await CanvasBuilder.generateGraph(data, 'leaderboard');
|
const graph = await CanvasBuilder.generateGraph(data, 'leaderboard');
|
||||||
interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Leaderboard')
|
embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Leaderboard')
|
||||||
.setDescription(MessageTool.concatMessage(
|
.setDescription(MessageTool.concatMessage(
|
||||||
`Level System was created **${Math.floor((Date.now()-client.config.LRSstart)/1000/60/60/24)}** days ago.`,
|
`Level System was created **${Math.floor((Date.now()-client.config.LRSstart)/1000/60/60/24)}** days ago.`,
|
||||||
|
Loading…
Reference in New Issue
Block a user