Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
c768c431
Commit
c768c431
authored
Jul 04, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update loading windbots
parent
0be91a67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
38 deletions
+9
-38
config.json
config.json
+2
-38
ygopro-server.coffee
ygopro-server.coffee
+3
-0
ygopro-server.js
ygopro-server.js
+4
-0
No files found.
config.json
View file @
c768c431
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
"redis_port"
:
6379
,
"redis_port"
:
6379
,
"enable_websocket_roomlist"
:
true
,
"enable_websocket_roomlist"
:
true
,
"enable_random_duel"
:
false
,
"enable_random_duel"
:
false
,
"enable_windbot"
:
true
,
"mycard_auth"
:
"https://ygobbs.com"
,
"mycard_auth"
:
"https://ygobbs.com"
,
"post_start_watching"
:
true
,
"post_start_watching"
:
true
,
"enable_TCG_as_default"
:
false
,
"enable_TCG_as_default"
:
false
,
...
@@ -22,43 +23,6 @@
...
@@ -22,43 +23,6 @@
"cert"
:
"ssl/ygopro-server.crt"
,
"cert"
:
"ssl/ygopro-server.crt"
,
"key"
:
"ssl/ygopro-server.key"
"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"
}
]
}
}
}
}
ygopro-server.coffee
View file @
c768c431
...
@@ -22,6 +22,9 @@ moment = require 'moment'
...
@@ -22,6 +22,9 @@ moment = require 'moment'
#redis = require 'redis'
#redis = require 'redis'
#redisdb = redis.createClient host: "127.0.0.1", port: settings.modules.redis_port
#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'
#heapdump = require 'heapdump'
#配置文件
#配置文件
...
...
ygopro-server.js
View file @
c768c431
...
@@ -30,6 +30,10 @@
...
@@ -30,6 +30,10 @@
moment
=
require
(
'
moment
'
);
moment
=
require
(
'
moment
'
);
if
(
settings
.
modules
.
enable_windbot
)
{
settings
.
modules
.
windbots
=
require
(
'
./windbot/bots.json
'
).
windbots
;
}
settings
=
require
(
'
./config.json
'
);
settings
=
require
(
'
./config.json
'
);
settings
.
BANNED_user
=
[];
settings
.
BANNED_user
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment