a402c7b0bb
- 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.
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
// Visit https://aka.ms/tsconfig to read more about this file
|
|
"compilerOptions": {
|
|
// File Layout
|
|
"rootDir": "src",
|
|
"outDir": "dist",
|
|
|
|
// Environment Settings
|
|
// See also https://aka.ms/tsconfig/module
|
|
"module": "node16",
|
|
"target": "es2022",
|
|
"types": ["node", "jest"],
|
|
// For nodejs:
|
|
// "lib": ["esnext"],
|
|
// "types": ["node"],
|
|
// and npm install -D @types/node
|
|
|
|
// Other Outputs
|
|
"sourceMap": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
|
|
// Stricter Typechecking Options
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
|
|
// Style Options
|
|
// "noImplicitReturns": true,
|
|
// "noImplicitOverride": true,
|
|
// "noUnusedLocals": true,
|
|
// "noUnusedParameters": true,
|
|
// "noFallthroughCasesInSwitch": true,
|
|
// "noPropertyAccessFromIndexSignature": true,
|
|
|
|
// Recommended Options
|
|
"strict": true,
|
|
"verbatimModuleSyntax": false,
|
|
"isolatedModules": true,
|
|
"noUncheckedSideEffectImports": true,
|
|
"moduleResolution": "node16",
|
|
"moduleDetection": "auto",
|
|
"skipLibCheck": true,
|
|
|
|
"esModuleInterop": true
|
|
},
|
|
"include": ["src/**/*.ts", "tests/**/*.ts"],
|
|
"exclude": ["dist", "node_modules"]
|
|
}
|