Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!178
This commit is contained in:
6
.devcontainer/Dockerfile
Normal file
6
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
|
RUN apk add git fish openssh gnupg
|
||||||
|
RUN yarn global add typescript ts-node nodemon
|
||||||
|
|
||||||
|
RUN mkdir -p /root/.ssh
|
||||||
46
.devcontainer/devcontainer.json
Normal file
46
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
// "remoteUser": "vscode",
|
||||||
|
"name": "Illegitimate dev",
|
||||||
|
"build": {
|
||||||
|
"context": "..",
|
||||||
|
"dockerfile": "./Dockerfile"
|
||||||
|
},
|
||||||
|
|
||||||
|
"mounts": [
|
||||||
|
"source=${localEnv:HOME}/.ssh/gitlab,target=/root/.ssh/gitlab,type=bind",
|
||||||
|
"source=${localEnv:HOME}/.ssh/config,target=/root/.ssh/config,type=bind",
|
||||||
|
"source=${localEnv:HOME}/.wakatime.cfg,target=/root/.wakatime.cfg,type=bind"
|
||||||
|
],
|
||||||
|
|
||||||
|
"postCreateCommand": "chmod 600 -R /root/.ssh",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"eamodio.gitlens",
|
||||||
|
"tal7aouy.icons",
|
||||||
|
"oderwat.indent-rainbow",
|
||||||
|
"ms-vscode.vscode-typescript-next",
|
||||||
|
"mongodb.mongodb-vscode",
|
||||||
|
"quicktype.quicktype",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"YoavBls.pretty-ts-errors",
|
||||||
|
"rangav.vscode-thunder-client",
|
||||||
|
"WakaTime.vscode-wakatime",
|
||||||
|
"gamunu.vscode-yarn"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
|
// "features": { }
|
||||||
|
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
// "forwardPorts": [],
|
||||||
|
|
||||||
|
// Uncomment the next line to run commands after the container is created.
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
// "customizations": {},
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
|
.devcontainer
|
||||||
.git
|
.git
|
||||||
|
.vscode
|
||||||
|
dist/
|
||||||
node_modules
|
node_modules
|
||||||
scripts
|
scripts
|
||||||
.clang-format
|
|
||||||
.dockerignore
|
.dockerignore
|
||||||
.env
|
.env
|
||||||
.env.example
|
.env.example
|
||||||
|
.eslintignore
|
||||||
.eslintrc.js
|
.eslintrc.js
|
||||||
.gitignore
|
.gitignore
|
||||||
.gitlab-ci.yml
|
.gitlab-ci.yml
|
||||||
|
.prettierrc.js
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
Dockerfile
|
Dockerfile
|
||||||
Dockerfile.cache
|
Dockerfile.cache
|
||||||
nodemon-ts.json
|
nodemon-js.json
|
||||||
nodemon.json
|
nodemon.json
|
||||||
@@ -1,15 +1,11 @@
|
|||||||
FROM node-cache as cache
|
FROM node-cache as cache
|
||||||
|
|
||||||
FROM node:20.9.0-alpine3.18
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
COPY --from=cache /cache/node_modules /app/node_modules
|
COPY --from=cache /cache/node_modules /app/node_modules
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_PATH=dist/
|
ENV NODE_PATH=dist/
|
||||||
|
|
||||||
RUN yarn global add typescript
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
CMD [ "yarn", "start" ]
|
CMD [ "yarn", "start" ]
|
||||||
@@ -9,7 +9,9 @@
|
|||||||
"env": {
|
"env": {
|
||||||
"NODE_PATH": "src/",
|
"NODE_PATH": "src/",
|
||||||
"NODE_ENV": "dev",
|
"NODE_ENV": "dev",
|
||||||
"TYPESCRIPT": "true"
|
"TYPESCRIPT": "true",
|
||||||
|
"TS_NODE_FILES": "true",
|
||||||
|
"TS_NODE_TRANSPILE_ONLY": "true"
|
||||||
},
|
},
|
||||||
"ext": "ts, json"
|
"ext": "ts, json"
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { Command } from "interfaces"
|
import { Command } from "interfaces"
|
||||||
|
|
||||||
const command: Command = {
|
export = {
|
||||||
name: "dev-info",
|
name: "dev-info",
|
||||||
description: "Test command for the bot.",
|
description: "Test command for the bot.",
|
||||||
type: "slash",
|
type: "slash",
|
||||||
@@ -33,6 +33,4 @@ const command: Command = {
|
|||||||
|
|
||||||
await interaction.reply({ content: "Test command.", ephemeral: true })
|
await interaction.reply({ content: "Test command.", ephemeral: true })
|
||||||
},
|
},
|
||||||
}
|
} as Command
|
||||||
|
|
||||||
export = command
|
|
||||||
@@ -10,7 +10,7 @@ import { Command } from "interfaces"
|
|||||||
import ms from "ms"
|
import ms from "ms"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
const command: Command = {
|
export = {
|
||||||
name: "timeout",
|
name: "timeout",
|
||||||
description: "Times out a memeber",
|
description: "Times out a memeber",
|
||||||
type: "slash",
|
type: "slash",
|
||||||
@@ -177,6 +177,4 @@ const command: Command = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
} as Command
|
||||||
|
|
||||||
export = command
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import statuses = require("config/statuses.json")
|
import statuses from "config/statuses.json"
|
||||||
import { Event } from "interfaces"
|
import { Event } from "interfaces"
|
||||||
import { ExtendedClient as Client } from "utils/Client"
|
import { ExtendedClient as Client } from "utils/Client"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user