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