Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklvh committed Jul 13, 2024
1 parent 657a3ad commit f72a059
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
container,
} from "@sapphire/framework";
import { GatewayIntentBits } from "discord.js";
import { Helpers } from "./classes/Helpers.js";
import { Time } from "@sapphire/time-utilities";

const client = new SapphireClient({
intents: [
Expand All @@ -20,23 +18,20 @@ const client = new SapphireClient({
GatewayIntentBits.GuildEmojisAndStickers,
],
defaultCooldown: {
delay: Time.Second * 3, // 3000 milliseconds
delay: 3000, // 3 seconds
limit: 2,
scope: BucketScope.User,
},
logger: {
depth: LogLevel.Debug,
level: LogLevel.Debug,
},
});

void client.login(process.env.TOKEN);
client.login(process.env.TOKEN);

const prisma = new PrismaClient();
container.prisma = prisma;

const helpers = new Helpers();
container.helpers = helpers;

void prisma.$connect().then(() => {
prisma.$connect().then(() => {
container.logger.info("Connected to the database successfully!");
});

0 comments on commit f72a059

Please sign in to comment.