Files
selfbot-discord/fonctions/run.ts
T
2024-03-02 21:42:57 +01:00

17 lines
533 B
TypeScript

import { Collection } from 'discord.js';
const { Client } = require('discord.js-selfbot-v13');
const loadEvents = require("./loadEvents");
const loadCommands = require("./loadCommands");
module.exports = function run(token: string) {
const client = new Client({ checkUpdate: false });
client.events = new Collection();
client.commands = new Collection();
console.log(`${loadEvents(client, '..\\events')} events loaded`);
console.log(`${loadCommands(client, '..\\commands')} commands loaded`);
client.login(token);
};