feat: initialize Discord bot project with basic command structure

- Add package.json with dependencies and scripts for building, testing, and running the bot.
- Implement bot startup logic in src/bot.ts, handling interactions and commands.
- Create command structure in src/commands/index.ts, including a ping command in src/commands/ping.ts.
- Add configuration loading from environment variables in src/config.ts.
- Implement command registration in Discord API in src/deploy-commands.ts.
- Bootstrap the bot in src/index.ts.
- Configure TypeScript settings in tsconfig.json.
This commit is contained in:
2026-05-17 15:52:39 +02:00
parent c348204772
commit a402c7b0bb
13 changed files with 6329 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
const tsEslint = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");
/** @type {import("eslint").Linter.FlatConfig[]} */
module.exports = [
{
ignores: ["dist/**", "node_modules/**"],
},
{
files: ["**/*.ts"],
languageOptions: {
parser: tsParser,
parserOptions: {
project: "./tsconfig.json",
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tsEslint,
},
rules: {
"no-console": "off",
"@typescript-eslint/no-explicit-any": "warn",
},
},
];