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 = {
bot: bot,
log_level: levels.DEBUG,
log_level: levels[cfg.log_level.toUpperCase()] || levels.WARN,
whitelist: cfg.user_whitelist || [],
set_ctx: (key, value) => {
global.ctx[key] = value;

View file

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

3
start.sh Normal file
View file

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