Skip to content

Instantly share code, notes, and snippets.

View JulianVennen's full-sized avatar

Julian Vennen JulianVennen

View GitHub Profile
const {WebSocket} = require('ws');
const config = require('../config.json');
let heartBeatInterval,
sequence = null,
debug = false,
heartBeatAck = true;
const ws = new WebSocket('wss://gateway.discord.gg/?v=9&encoding=json');
ws.on('open', () => {
const {Client} = require("discord.js");
const config = require('../config.json');
(async () => {
const client = new Client({
intents: ['GUILD_PRESENCES'],
});
await client.login(config.auth_token);