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
1e59412f
Commit
1e59412f
authored
Jun 23, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
1003f3df
8ef3f868
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
380 additions
and
38 deletions
+380
-38
data/default_config.json
data/default_config.json
+6
-0
data/i18n.json
data/i18n.json
+12
-0
package.json
package.json
+1
-0
ygopro-server.coffee
ygopro-server.coffee
+155
-14
ygopro-server.js
ygopro-server.js
+206
-24
No files found.
data/default_config.json
View file @
1e59412f
...
...
@@ -102,6 +102,12 @@
"auth_database"
:
"postgres://233@233.mycard.moe/233"
,
"auth_key"
:
"233333"
},
"challonge"
:
{
"enabled"
:
false
,
"post_detailed_score"
:
true
,
"api_key"
:
"123"
,
"tournament_id"
:
"456"
},
"deck_log"
:
{
"enabled"
:
false
,
"accesskey"
:
"233"
,
...
...
data/i18n.json
View file @
1e59412f
...
...
@@ -137,6 +137,12 @@
"deck_incorrect_reconnect"
:
"Please pick your previous deck."
,
"reconnect_failed"
:
"Reconnect failed."
,
"reconnecting_to_room"
:
"Reconnecting to server..."
,
"challonge_user_not_found"
:
"You are not a participant of the tournament."
,
"challonge_match_load_failed"
:
"Failed loading tournament info."
,
"challonge_match_not_found"
:
"Your current match was not found."
,
"challonge_match_already_finished"
:
"Your current match was already finished. Please call the judge for any help."
,
"challonge_match_created"
:
"A room for match only is created. Your opponent will join in automatically."
,
"challonge_player_already_in"
:
"Please do not enter the room you are already in."
,
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
},
"es-es"
:
{
...
...
@@ -414,6 +420,12 @@
"deck_incorrect_reconnect"
:
"请选择你在本局决斗中使用的卡组。"
,
"reconnect_failed"
:
"重新连接失败。"
,
"reconnecting_to_room"
:
"正在重新连接到服务器……"
,
"challonge_user_not_found"
:
"未找到你的参赛信息。"
,
"challonge_match_load_failed"
:
"读取比赛信息失败。"
,
"challonge_match_not_found"
:
"你没有当前轮次的比赛。"
,
"challonge_match_already_finished"
:
"你在当前轮次的比赛已经结束,如需重赛,请联系裁判。"
,
"challonge_match_created"
:
"已建立比赛专用房间,将会自动匹配你的对手。"
,
"challonge_player_already_in"
:
"请不要重复加入比赛房间。"
,
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
},
"ko-kr"
:
{
...
...
package.json
View file @
1e59412f
...
...
@@ -12,6 +12,7 @@
"author"
:
"zh99998 <zh99998@gmail.com>, mercury233 <me@mercury233.me>"
,
"dependencies"
:
{
"
bunyan
"
:
"
latest
"
,
"
challonge
"
:
"
^2.1.1
"
,
"
deepmerge
"
:
"
latest
"
,
"
load-json-file
"
:
"
latest
"
,
"
moment
"
:
"
latest
"
,
...
...
ygopro-server.coffee
View file @
1e59412f
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
1e59412f
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