dyno-bot/Dyno-web-premium-before-reset/test.js

17 lines
363 B
JavaScript
Raw Normal View History

2020-09-12 20:08:48 +02:00
'use strict';
const Eris = require('eris');
const config = require('./config');
const logger = require('./logger').get('test');
const options = {
restMode: true,
};
const client = new Eris(`Bot ${config.client.token}`, options);
client.on('error', err => logger.error(err));
client.getRESTUser(config.client.userid).then(console.log).catch(console.error);