logging is config based

This commit is contained in:
jane 2020-11-21 17:29:07 -05:00
parent 97393e3ce2
commit 0fd1105071
3 changed files with 5 additions and 3 deletions

2
bot.js
View File

@ -15,7 +15,7 @@ const bot = new Eris(cfg.token);
global.ctx = { global.ctx = {
bot: bot, bot: bot,
log_level: levels.DEBUG, log_level: levels[cfg.log_level.toUpperCase()] || levels.WARN,
whitelist: cfg.user_whitelist || [], whitelist: cfg.user_whitelist || [],
set_ctx: (key, value) => { set_ctx: (key, value) => {
global.ctx[key] = value; global.ctx[key] = value;

View File

@ -1,8 +1,7 @@
{ {
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"eris": "^0.14.0", "eris": "^0.14.0"
"socket.engine": "^1.0.0"
}, },
"name": "lights", "name": "lights",
"version": "1.0.0", "version": "1.0.0",

3
start.sh Normal file
View File

@ -0,0 +1,3 @@
git pull
pnpm i
pnpm start