logging is config based
This commit is contained in:
parent
97393e3ce2
commit
0fd1105071
3 changed files with 5 additions and 3 deletions
2
bot.js
2
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;
|
||||
|
|
|
@ -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
3
start.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
git pull
|
||||
pnpm i
|
||||
pnpm start
|
Loading…
Reference in a new issue