forked from SwitchbladeBot/switchblade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (24 loc) · 780 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const Sentry = require('@sentry/node')
Sentry.init({ dsn: process.env.SENTRY_DSN })
const { readFileSync } = require('fs')
require('moment')
require('moment-duration-format')
// Initialize Canvas
let canvasLoaded = false
try {
require('canvas')
require('./src/utils/CanvasUtils.js').initializeHelpers()
canvasLoaded = true
} catch (e) {}
// Initialize client
const CLIENT_OPTIONS = {
fetchAllMembers: false,
enableEveryone: false,
canvasLoaded
}
console.log(readFileSync('bigtitle.txt', 'utf8').toString())
const Switchblade = require('./src/Switchblade.js')
const client = new Switchblade(CLIENT_OPTIONS)
client.on('debug', (...args) => console.log('debug', ...args))
client.on('rateLimit', (...args) => console.log('rateLimit', ...args))
client.initialize()