🚨 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 { Client, Collection, GatewayIntentBits } from "discord.js"; // discord.js
|
||||||
import "dotenv/config";
|
import "dotenv/config";
|
||||||
import * as command from "./handlers/command";
|
import { register as commandRegister } from "./handlers/command";
|
||||||
import * as event from "./handlers/event";
|
import { register as eventRegister } from "./handlers/event";
|
||||||
import * as schedule from "./handlers/schedule";
|
import { start as scheduleStart } from "./handlers/schedule";
|
||||||
|
|
||||||
// Main process that starts all other sub processes
|
// Main process that starts all other sub processes
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
|
@ -19,9 +19,9 @@ const main = async () => {
|
||||||
// Create command collection
|
// Create command collection
|
||||||
client.commands = new Collection();
|
client.commands = new Collection();
|
||||||
|
|
||||||
await schedule.start(client);
|
await scheduleStart(client);
|
||||||
await event.register(client);
|
await eventRegister(client);
|
||||||
await command.register(client);
|
await commandRegister(client);
|
||||||
|
|
||||||
// Authorize with Discord's API
|
// Authorize with Discord's API
|
||||||
await client.login(process.env.DISCORD_TOKEN);
|
await client.login(process.env.DISCORD_TOKEN);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// Dependencies
|
// Dependencies
|
||||||
import { Client } from "discord.js";
|
import { Client } from "discord.js";
|
||||||
|
|
||||||
import * as roles from "./modules/roles";
|
import { execute as RolesExecute } from "./modules/roles";
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
schedule: "*/5 * * * *", // https://crontab.guru/
|
schedule: "*/5 * * * *", // https://crontab.guru/
|
||||||
};
|
};
|
||||||
|
|
||||||
export const execute = async (client: Client) => {
|
export const execute = async (client: Client) => {
|
||||||
await roles.execute(client);
|
await RolesExecute(client);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue