🚨 Fixed some JS-C1003
This commit is contained in:
parent
3ba9b204d4
commit
810fabc794
2 changed files with 8 additions and 8 deletions
12
src/index.ts
12
src/index.ts
|
@ -1,8 +1,8 @@
|
|||
import { Client, Collection, GatewayIntentBits } from "discord.js"; // discord.js
|
||||
import "dotenv/config";
|
||||
import * as command from "./handlers/command";
|
||||
import * as event from "./handlers/event";
|
||||
import * as schedule from "./handlers/schedule";
|
||||
import { register as commandRegister } from "./handlers/command";
|
||||
import { register as eventRegister } from "./handlers/event";
|
||||
import { start as scheduleStart } from "./handlers/schedule";
|
||||
|
||||
// Main process that starts all other sub processes
|
||||
const main = async () => {
|
||||
|
@ -19,9 +19,9 @@ const main = async () => {
|
|||
// Create command collection
|
||||
client.commands = new Collection();
|
||||
|
||||
await schedule.start(client);
|
||||
await event.register(client);
|
||||
await command.register(client);
|
||||
await scheduleStart(client);
|
||||
await eventRegister(client);
|
||||
await commandRegister(client);
|
||||
|
||||
// Authorize with Discord's API
|
||||
await client.login(process.env.DISCORD_TOKEN);
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// Dependencies
|
||||
import { Client } from "discord.js";
|
||||
|
||||
import * as roles from "./modules/roles";
|
||||
import { execute as RolesExecute } from "./modules/roles";
|
||||
|
||||
export const options = {
|
||||
schedule: "*/5 * * * *", // https://crontab.guru/
|
||||
};
|
||||
|
||||
export const execute = async (client: Client) => {
|
||||
await roles.execute(client);
|
||||
await RolesExecute(client);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue