Commit c768c431 authored by mercury233's avatar mercury233

update loading windbots

parent 0be91a67
......@@ -10,6 +10,7 @@
"redis_port": 6379,
"enable_websocket_roomlist": true,
"enable_random_duel": false,
"enable_windbot": true,
"mycard_auth": "https://ygobbs.com",
"post_start_watching": true,
"enable_TCG_as_default": false,
......@@ -22,43 +23,6 @@
"cert": "ssl/ygopro-server.crt",
"key": "ssl/ygopro-server.key"
}
},
"windbot": [
{
"name": "琪露诺",
"deck": "Burn",
"dialog": "cirno.zh-CN"
},
{
"name": "琪露诺",
"deck": "Frog",
"dialog": "cirno.zh-CN"
},
{
"name": "琪露诺",
"deck": "Horus",
"dialog": "cirno.zh-CN"
},
{
"name": "琪露诺",
"deck": "OldSchool",
"dialog": "cirno.zh-CN"
},
{
"name": "谜之剑士LV4",
"deck": "Dragunity",
"dialog": "zh-CN"
},
{
"name": "谜之剑士LV4",
"deck": "Rank V",
"dialog": "zh-CN"
},
{
"name": "谜之剑士LV4",
"deck": "Zexal Weapons",
"dialog": "zh-CN"
}
]
}
}
......@@ -22,6 +22,9 @@ moment = require 'moment'
#redis = require 'redis'
#redisdb = redis.createClient host: "127.0.0.1", port: settings.modules.redis_port
if settings.modules.enable_windbot
settings.modules.windbots = require('./windbot/bots.json').windbots
#heapdump = require 'heapdump'
#配置文件
......
......@@ -30,6 +30,10 @@
moment = require('moment');
if (settings.modules.enable_windbot) {
settings.modules.windbots = require('./windbot/bots.json').windbots;
}
settings = require('./config.json');
settings.BANNED_user = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment