mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-03 23:36:23 +02:00
17 lines
533 B
TypeScript
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);
|
|
}; |