10 |
const server = require("./server"); |
const server = require("./server"); |
11 |
const AntiRaid = require("./AntiRaid"); |
const AntiRaid = require("./AntiRaid"); |
12 |
const MessageFilter = require("./MessageFilter"); |
const MessageFilter = require("./MessageFilter"); |
13 |
|
const { random } = require("../commands/pixabay"); |
14 |
|
|
15 |
class App { |
class App { |
16 |
constructor(rootdir) { |
constructor(rootdir) { |
44 |
boot() { |
boot() { |
45 |
this.on('ready', () => { |
this.on('ready', () => { |
46 |
console.log("Logged in as " + this.client.user.tag); |
console.log("Logged in as " + this.client.user.tag); |
47 |
|
|
48 |
|
this.client.user.setStatus(random(['dnd', 'idle'])); |
49 |
|
this.client.user.setActivity("over the server", { type: "WATCHING" }); |
50 |
|
|
51 |
server(); |
server(); |
52 |
}); |
}); |
53 |
|
|