-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
24 lines (22 loc) · 696 Bytes
/
config.js
File metadata and controls
24 lines (22 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require("dotenv").config();
const { Client, Intents } = require('discord.js');
const Keyv = require('keyv');
const keyv = new Keyv();
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
const { exec } = require('child_process');
let running = false;
const logger = require('./logger');
const worlds = JSON.parse(process.env.MINECRAFT_WORLDS)
module.exports = {
token: process.env.BOT_TOKEN,
client_id: process.env.CLIENT_ID,
keyv: keyv,
client: client,
running: running,
worlds: worlds,
admins: process.env.ADMINS,
mscs: process.env.MSCS_BIN,
mscs_worlds: process.env.MSCS_WORLDS,
logger: logger.logger,
commandUsed: logger.commandUsed
}