From d0ef93e58c2eeac642c5e6cf2e59d9b769f64e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sun, 3 Apr 2022 21:55:43 +0900 Subject: [PATCH] Load config from config/all --- redisclient.js | 2 +- session.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redisclient.js b/redisclient.js index f21acb2..11bce39 100644 --- a/redisclient.js +++ b/redisclient.js @@ -3,7 +3,7 @@ const Dragonfly = global.Dragonfly; const Redis = require( "redis" ); -const SessConf = cl.load( "config.sx.modular.session" ); +const SessConf = cl.load( "config.all" ).sx.modular.session; var Client = Redis.createClient( SessConf.config.port diff --git a/session.js b/session.js index 91d76e8..885d0ec 100644 --- a/session.js +++ b/session.js @@ -8,7 +8,7 @@ const EventEmitter = require( "events" ).EventEmitter; const Client = cl.load( "botansx.modular.redisclient" ); const rand = cl.load( "botansx.utils.random" ); -const SessConf = cl.load( "config.sx.modular.session" ); +const SessConf = cl.load( "config.all" ).sx.modular.session; class SessionEventArgs {