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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
MyCard
srvpro
Commits
91c6c3ed
Commit
91c6c3ed
authored
Dec 21, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config
parent
236cf33b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
172 additions
and
134 deletions
+172
-134
config.json
config.json
+51
-26
mycard.config.json
mycard.config.json
+16
-7
ygopro-server.coffee
ygopro-server.coffee
+54
-50
ygopro-server.js
ygopro-server.js
+51
-51
No files found.
config.json
View file @
91c6c3ed
{
{
"port"
:
7911
,
"port"
:
7911
,
"modules"
:
{
"version"
:
4924
,
"welcome"
:
"YGOPRO Server"
,
"hostinfo"
:
{
"update"
:
"请更新游戏版本"
,
"stop"
:
false
,
"tips"
:
"http://mercury233.me/ygosrv233/tips.json"
,
"dialogues"
:
"http://mercury233.me/ygosrv233/dialogues.json"
,
"enable_random_duel"
:
false
,
"enable_halfway_watch"
:
true
,
"enable_cloud_replay"
:
false
,
"enable_windbot"
:
false
,
"enable_websocket_roomlist"
:
false
,
"enable_public_roomlist"
:
false
,
"redis_port"
:
6379
,
"windbot_port"
:
2399
,
"spawn_windbot"
:
false
,
"hang_timeout"
:
90
,
"default_version"
:
4924
,
"default_room_info"
:
{
"lflist"
:
0
,
"lflist"
:
0
,
"rule"
:
0
,
"rule"
:
0
,
"mode"
:
0
,
"mode"
:
0
,
...
@@ -30,6 +14,33 @@
...
@@ -30,6 +14,33 @@
"draw_count"
:
1
,
"draw_count"
:
1
,
"time_limit"
:
180
"time_limit"
:
180
},
},
"modules"
:
{
"welcome"
:
"Mycard YGOPRO Server"
,
"update"
:
"请更新游戏版本"
,
"stop"
:
false
,
"tips"
:
{
"enabled"
:
true
,
"get"
:
false
},
"dialogues"
:
{
"enabled"
:
true
,
"get"
:
"http://mercury233.me/ygosrv233/dialogues.json"
},
"random_duel"
:
{
"enabled"
:
false
,
"hang_timeout"
:
90
},
"cloud_replay"
:
{
"enabled"
:
false
,
"redis_port"
:
6379
,
"enable_halfway_watch"
:
true
},
"windbot"
:
{
"enabled"
:
false
,
"botlist"
:
"./windbot/bots.json"
,
"spawn"
:
false
,
"port"
:
2399
},
"mycard"
:
{
"mycard"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
"auth_base_url"
:
"https://ygobbs.com"
,
"auth_base_url"
:
"https://ygobbs.com"
,
...
@@ -87,6 +98,8 @@
...
@@ -87,6 +98,8 @@
"http"
:
{
"http"
:
{
"port"
:
7922
,
"port"
:
7922
,
"password"
:
"123456"
,
"password"
:
"123456"
,
"websocket_roomlist"
:
false
,
"public_roomlist"
:
false
,
"ssl"
:
{
"ssl"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
"port"
:
7923
,
"port"
:
7923
,
...
@@ -103,5 +116,17 @@
...
@@ -103,5 +116,17 @@
"badword_level2"
:
[
"死妈"
,
"草你妈"
],
"badword_level2"
:
[
"死妈"
,
"草你妈"
],
"badword_level3"
:
[
"迷奸"
,
"仿真枪"
],
"badword_level3"
:
[
"迷奸"
,
"仿真枪"
],
"illegal_id"
:
[
"^Lv.
\\
d+"
,
"^VIP.
\\
d+"
]
"illegal_id"
:
[
"^Lv.
\\
d+"
,
"^VIP.
\\
d+"
]
},
"tip"
:
[
"欢迎来到本服务器"
,
"本服务器使用萌卡代码搭建"
],
"dialogues"
:
{
"46986414"
:
[
"出来吧,我最强的仆人,黑魔导!"
],
"58481572"
:
[
"我们来做朋友吧!"
]
}
}
}
}
\ No newline at end of file
mycard.config.json
View file @
91c6c3ed
...
@@ -2,13 +2,15 @@
...
@@ -2,13 +2,15 @@
"port"
:
7911
,
"port"
:
7911
,
"modules"
:
{
"modules"
:
{
"welcome"
:
"Mycard YGOPro Server"
,
"welcome"
:
"Mycard YGOPro Server"
,
"update"
:
"请更新游戏版本,可在社区手动下载更新包"
,
"update"
:
"请更新游戏版本,可在社区(https://ygobbs.com)手动下载更新包"
,
"tips"
:
"http://mycard.moe/tips.json"
,
"tips"
:
{
"dialogues"
:
"http://mercury233.me/ygosrv233/dialogues.json"
,
"enabled"
:
true
,
"enable_windbot"
:
true
,
"get"
:
"http://mycard.moe/tips.json"
"enable_websocket_roomlist"
:
true
,
},
"windbot_port"
:
2399
,
"dialogues"
:
{
"spawn_windbot"
:
true
,
"enabled"
:
true
,
"get"
:
"http://mercury233.me/ygosrv233/dialogues.json"
},
"mycard"
:
{
"mycard"
:
{
"enabled"
:
true
,
"enabled"
:
true
,
"auth_base_url"
:
"https://ygobbs.com"
,
"auth_base_url"
:
"https://ygobbs.com"
,
...
@@ -28,9 +30,16 @@
...
@@ -28,9 +30,16 @@
"post_score"
:
"https://mycard.moe/ygopro/arena/index.php?c=update"
,
"post_score"
:
"https://mycard.moe/ygopro/arena/index.php?c=update"
,
"get_score"
:
"https://mycard.moe/ygopro/arena/index.php?c=query&username="
"get_score"
:
"https://mycard.moe/ygopro/arena/index.php?c=query&username="
},
},
"windbot"
:
{
"enabled"
:
true
,
"botlist"
:
"./windbot/bots.json"
,
"spawn"
:
false
,
"port"
:
2399
},
"http"
:
{
"http"
:
{
"port"
:
7922
,
"port"
:
7922
,
"password"
:
"123456"
,
"password"
:
"123456"
,
"websocket_roomlist"
:
true
,
"ssl"
:
{
"ssl"
:
{
"enabled"
:
true
,
"enabled"
:
true
,
"port"
:
7923
,
"port"
:
7923
,
...
...
ygopro-server.coffee
View file @
91c6c3ed
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
91c6c3ed
This diff is collapsed.
Click to expand it.
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