Skip to content

Commit a8d2d97

Browse files
committed
Libraries cleanups
1 parent 5942b28 commit a8d2d97

5 files changed

Lines changed: 5 additions & 198 deletions

File tree

package-lock.json

Lines changed: 3 additions & 191 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@types/node": "^20.19.39",
1818
"@types/pg": "^8.20.0",
1919
"prisma": "^7.8.0",
20-
"ts-node": "^10.9.0",
2120
"typescript": "^5.0.0"
2221
},
2322
"dependencies": {
@@ -27,7 +26,6 @@
2726
"axios": "^1.16.0",
2827
"chalk": "^4.1.2",
2928
"discord.js": "^14.25.1",
30-
"dotenv": "^17.4.2",
3129
"pg": "^8.20.0",
3230
"tsx": "^4.21.0",
3331
"zod": "^4.4.3"

src/commands/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ export default new Command({
3535
modal.addLabelComponents(GreetingChannelRes, LoggingChannel);
3636
interaction.showModal(modal);
3737
},
38-
ownerOnly: true,
38+
requiredPermissions: ["Administrator"]
3939
})
4040

src/commands/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ export default new Command({
5555
modal.addLabelComponents(GreetingChannelRes, LoggingChannel);
5656
interaction.showModal(modal);
5757
},
58-
ownerOnly: true,
58+
requiredPermissions: ["Administrator"]
5959
})
6060

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import "./libs/loadVariables.js";
22
import { Client, GatewayIntentBits, Partials, Collection } from "discord.js";
3-
import * as dotenv from "dotenv/config";
43
import { Command, loadCommands } from "./libs/loadCommands.js";
54
import path from "path";
65
import fs from "fs";
@@ -10,8 +9,6 @@ import chalk from "chalk";
109

1110
const __dirname = fileURLToPath(new URL(".", import.meta.url));
1211

13-
dotenv;
14-
1512
process.on("uncaughtException", (error) => {
1613
logger.error(
1714
JSON.stringify({

0 commit comments

Comments
 (0)