Skip to content

Commit fd37dce

Browse files
refactor: remove unused tokens and commands, update client and event structure
1 parent a22a8b4 commit fd37dce

File tree

10 files changed

+113
-367
lines changed

10 files changed

+113
-367
lines changed

.env.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Replace <DISCORD_TOKEN> with your bot's token from the Discord Developer Portal.
44
DISCORD_TOKEN=<DISCORD_TOKEN>
55

6-
# Gemini API Token (required)
7-
# Replace <GEMINI_TOKEN> with your Gemini API token for AI integrations.
8-
GEMINI_TOKEN=<GEMINI_API_TOKEN>
9-
106
# MongoDB Connection URL (required)
117
# Replace <MONGO_URL> with the connection string for your MongoDB instance.
128
# Example: mongodb+srv://<username>:<password>@cluster.mongodb.net/<dbname>

prisma.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig, env } from 'prisma/config'
2+
import "dotenv/config";
3+
4+
export default defineConfig({
5+
schema: 'prisma/schema.prisma',
6+
migrations: {
7+
path: 'prisma/migrations',
8+
},
9+
datasource: {
10+
url: env('MONGO_URL'),
11+
},
12+
})

prisma/schema.prisma

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ generator client {
44

55
datasource db {
66
provider = "mongodb"
7-
url = env("MONGO_URL")
87
}
98

109
type TypeWelcome {

src/commands/bot/CommandPing.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/events/Interaction/InteractionCreate.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/events/Message/IA.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/events/Ready.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Client from "../main";
22
import { Event } from "../structures/Event";
33
import chalk from "chalk";
44

5-
export default new Event("ready", () => {
5+
export default new Event("clientReady", () => {
66
console.log(
77
`• Logged in as: ${chalk.blue(`${Client.user.username} (${Client.user.id})`)}`,
88
);

0 commit comments

Comments
 (0)