From 0fd110507184e4dc34a3a3e45e55204e43975683 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sat, 21 Nov 2020 17:29:07 -0500 Subject: [PATCH] logging is config based --- bot.js | 2 +- package.json | 3 +-- start.sh | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 start.sh diff --git a/bot.js b/bot.js index 53b46d3..1acc963 100644 --- a/bot.js +++ b/bot.js @@ -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; diff --git a/package.json b/package.json index dc86990..eb85ce3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..1a91db0 --- /dev/null +++ b/start.sh @@ -0,0 +1,3 @@ +git pull +pnpm i +pnpm start \ No newline at end of file