forked from hellos3b/sjbha-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
33 lines (27 loc) · 880 Bytes
/
app.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
33
import dotenv from 'dotenv'
dotenv.config()
import Bastion from './lib/bastion'
import botModules from './config/plugins.config'
import Boombot from './plugins/Boombot'
const channels = {
"admin": process.env.C_ADMIN,
"shitpost": "506911331257942027",
"strava": "450913008323919872",
"boombot": "432766496700235776",
"stocks": "363123179696422916",
"dungeon": "497505757865050112",
"announcement": process.env.C_ANNOUNCEMENT,
"compact": process.env.C_COMPACT
}
const bastion = Bastion({
token: process.env.DISCORD_TOKEN,
channels,
serverId: process.env.SERVER_ID,
prefix: process.env.NODE_ENV === "production" ? "!" : (process.env.npm_config_symbol || "_")
})
// Load modules
bastion.use(botModules(bastion), { ignore: [channels.boombot] })
bastion.use(Boombot(bastion, {
restrict: [channels.boombot]
}))
bastion.connect()