Load config from config/all

This commit is contained in:
斟酌 鵬兄 2022-04-03 21:55:43 +09:00
parent 68663787bb
commit d0ef93e58c
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ const Dragonfly = global.Dragonfly;
const Redis = require( "redis" ); 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( var Client = Redis.createClient(
SessConf.config.port SessConf.config.port

View File

@ -8,7 +8,7 @@ const EventEmitter = require( "events" ).EventEmitter;
const Client = cl.load( "botansx.modular.redisclient" ); const Client = cl.load( "botansx.modular.redisclient" );
const rand = cl.load( "botansx.utils.random" ); 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 class SessionEventArgs
{ {