Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 2
}
2 changes: 2 additions & 0 deletions lib/dbInit.ts → lib/db-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ export async function initializeDatabase(): Promise<void> {
client.release();
}
}

initializeDatabase();
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"start:bot": "ts-node --project tsconfig.bot.json lib/discordBot.ts",
"db:init": "ts-node dbInit.ts"
"start:bot": "ts-node --project tsconfig.scripts.json lib/discord-bot.ts",
"db:init": "ts-node --project tsconfig.scripts.json lib/db-init.ts"
},
"dependencies": {
"discord.js": "^14.18.0",
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.bot.json

This file was deleted.

8 changes: 8 additions & 0 deletions tsconfig.scripts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "node"
},
"include": ["lib/discordBot.ts"]
}