2019-09-13 20:02:41 +00:00
|
|
|
// separate the client from app.js so we can call it later
|
|
|
|
const { Client } = require("eris");
|
2019-11-13 00:09:06 +00:00
|
|
|
const client = new Client(process.env.TOKEN, {
|
2020-03-12 13:25:20 +00:00
|
|
|
defaultImageSize: 1024,
|
|
|
|
disableEvents: {
|
|
|
|
CHANNEL_CREATE: true,
|
|
|
|
CHANNEL_DELETE: true,
|
|
|
|
CHANNEL_UPDATE: true,
|
|
|
|
GUILD_BAN_REMOVE: true,
|
|
|
|
GUILD_MEMBER_ADD: true,
|
|
|
|
GUILD_MEMBER_REMOVE: true,
|
|
|
|
GUILD_MEMBER_UPDATE: true,
|
|
|
|
GUILD_ROLE_CREATE: true,
|
|
|
|
GUILD_ROLE_DELETE: true,
|
|
|
|
GUILD_ROLE_UPDATE: true,
|
|
|
|
TYPING_START: true,
|
|
|
|
USER_UPDATE: true,
|
|
|
|
VOICE_STATE_UPDATE: true
|
|
|
|
},
|
|
|
|
maxShards: "auto",
|
|
|
|
opusOnly: true
|
2019-09-13 20:02:41 +00:00
|
|
|
});
|
|
|
|
module.exports = client;
|