mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-19 21:40:12 +02:00
init sb
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const { Collection } = require('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);
|
||||
};
|
||||
Reference in New Issue
Block a user