1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Compare commits

..

3 Commits

Author SHA1 Message Date
toast-ts
1bf0ce0e4b Update Node.js to 22.1.0 and use its cache feature 2024-05-05 17:59:11 +10:00
toast-ts
51119aff72 I keep forgetting that it is 'register' and not 'deploy' 2024-05-05 15:56:57 +10:00
toast-ts
bb415d792d These were unused apparently so buhbye 2024-05-05 15:51:55 +10:00
5 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.yarn .yarn
.pnp.* .pnp.*
dist dist
build_cache
src/private src/private
src/*.json src/*.json

View File

@ -1,6 +1,7 @@
FROM node:22.0.0-alpine3.19 FROM node:22.1.0-alpine3.19
ENV YARN_VERSION 4.2.1 ENV YARN_VERSION 4.2.1
ENV TZ Australia/Sydney ENV TZ Australia/Sydney
ENV NODE_COMPILE_CACHE /Daggerbot/build_cache
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 ttf-dejavu RUN apk update && apk upgrade && apk add --no-cache git fontconfig ttf-dejavu
WORKDIR /Daggerbot WORKDIR /Daggerbot

View File

@ -7,3 +7,4 @@ services:
- ./.git:/Daggerbot/.git:rw - ./.git:/Daggerbot/.git:rw
- ./src/:/Daggerbot/src/:rw - ./src/:/Daggerbot/src/:rw
- ./dist/:/Daggerbot/dist/:rw - ./dist/:/Daggerbot/dist/:rw
- ./build_cache/:/Daggerbot/build_cache:rw

View File

@ -99,7 +99,7 @@ export default class MessageCreate {
const times_of_day = ['morning', 'afternoon', 'evening', 'night']; const times_of_day = ['morning', 'afternoon', 'evening', 'night'];
for (let i = 0; i < times_of_day.length; i++) Response.create(message, GeneralChatID, times_of_day[i]); for (let i = 0; i < times_of_day.length; i++) Response.create(message, GeneralChatID, times_of_day[i]);
CmdTrigger.registerCmds(client, message, 'register'); CmdTrigger.registerCmds(client, message, 'deploy');
CmdTrigger.MFPwTrigger(message, 'farmpw'); CmdTrigger.MFPwTrigger(message, 'farmpw');
let picStorage = { let picStorage = {

View File

@ -3,18 +3,14 @@
"skipLibCheck": true, "skipLibCheck": true,
"removeComments": true, "removeComments": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"esModuleInterop": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2022", "target": "ES2022",
"module": "ESNext", "module": "ES2022",
"baseUrl": ".", "baseUrl": ".",
"rootDir": "src", "rootDir": "src",
"outDir": "dist", "outDir": "dist",
"moduleResolution": "bundler", "moduleResolution": "Bundler",
"typeRoots": [ "./src/interfaces.d.ts" ] "typeRoots": [ "./src/interfaces.d.ts" ]
}, },
"include": [ "src" ], "include": [ "src" ],