Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
/* eslint-disable no-console */
try {
require('wtfnode').init();
} catch (err) {} // eslint-disable-line no-empty
const { Client } = require('../');
const { clientId, clientSecret } = require('./auth');
const client = new Client({ transport: 'ipc' });
client.on('ready', async () => {
console.log(client.user);
await client.setActivity({
state: 'slithering',
details: '🐍',
startTimestamp: new Date(),
largeImageKey: 'snek_large',
'use strict';
/* eslint-disable no-console */
try {
require('wtfnode').init();
} catch (err) {} // eslint-disable-line no-empty
const { Client } = require('../');
const { clientId } = require('./auth');
const client = new Client({ transport: 'ipc' });
client.on('ready', () => {
console.log(client);
client.subscribe('ACTIVITY_JOIN', ({ secret }) => {
console.log('should join game with secret:', secret);
});
client.subscribe('ACTIVITY_SPECTATE', ({ secret }) => {