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
c0edb987
Commit
c0edb987
authored
Jul 25, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add vip
parent
fa26789b
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
766 additions
and
196 deletions
+766
-196
data/default_config.json
data/default_config.json
+6
-1
data/default_data.json
data/default_data.json
+13
-0
data/i18n.json
data/i18n.json
+56
-0
ygopro-server.coffee
ygopro-server.coffee
+220
-12
ygopro-server.js
ygopro-server.js
+471
-183
No files found.
data/default_config.json
View file @
c0edb987
...
@@ -66,6 +66,10 @@
...
@@ -66,6 +66,10 @@
"enabled"
:
true
,
"enabled"
:
true
,
"get"
:
false
"get"
:
false
},
},
"vip"
:
{
"enabled"
:
false
,
"generate_count"
:
50
},
"random_duel"
:
{
"random_duel"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
"no_rematch_check"
:
false
,
"no_rematch_check"
:
false
,
...
@@ -85,7 +89,8 @@
...
@@ -85,7 +89,8 @@
"my_ip"
:
"127.0.0.1"
"my_ip"
:
"127.0.0.1"
},
},
"chat_color"
:
{
"chat_color"
:
{
"enabled"
:
false
"enabled"
:
false
,
"restrict_to_vip"
:
false
},
},
"retry_handle"
:
{
"retry_handle"
:
{
"enabled"
:
true
,
"enabled"
:
true
,
...
...
data/default_data.json
View file @
c0edb987
...
@@ -50,5 +50,18 @@
...
@@ -50,5 +50,18 @@
"chat_color"
:
{
"chat_color"
:
{
"file"
:
"./config/chat_color.json"
,
"file"
:
"./config/chat_color.json"
,
"save_list"
:
{}
"save_list"
:
{}
},
"vip_info"
:
{
"file"
:
"./config/vip_info.json"
,
"cdkeys"
:
{
"365"
:
[],
"180"
:
[],
"90"
:
[],
"30"
:
[],
"7"
:
[],
"3"
:
[],
"1"
:
[]
},
"players"
:
{}
}
}
}
}
\ No newline at end of file
data/i18n.json
View file @
c0edb987
...
@@ -73,6 +73,14 @@
...
@@ -73,6 +73,14 @@
"chat_order_tip"
:
"/tip show a tip"
,
"chat_order_tip"
:
"/tip show a tip"
,
"chat_order_chatcolor_1"
:
"/color show the current chat color, /color colorname set the chat color"
,
"chat_order_chatcolor_1"
:
"/color show the current chat color, /color colorname set the chat color"
,
"chat_order_chatcolor_2"
:
"/color default restore the default chat color, /color help list all available color"
,
"chat_order_chatcolor_2"
:
"/color default restore the default chat color, /color help list all available color"
,
"chat_order_vip"
:
"/vip to view your supporter info, /vip help to view the help of supporter"
,
"chat_order_vip_help"
:
"/vip help to show this list"
,
"chat_order_vip_status"
:
"/vip status to view your supporter info"
,
"chat_order_vip_buy"
:
"/vip buy YOUR_KEY to become a supporter"
,
"chat_order_vip_password"
:
"/vip password NEW_PASSWORD to change password"
,
"chat_order_vip_dialogues"
:
"/vip dialogues CARD_CODE DIALOGUE to set a dialogue for a specific card"
,
"chat_order_vip_words"
:
"/vip words WORD to set your word when joining in the server"
,
"chat_order_vip_victory"
:
"/vip victory WORD to set your word when you win a duel"
,
"room_name"
:
"Room name is"
,
"room_name"
:
"Room name is"
,
"banned_chat_tip"
:
"You are banned from chatting."
,
"banned_chat_tip"
:
"You are banned from chatting."
,
"banned_duel_tip"
:
"You are banned from the random duel system for sending inappropriate messages."
,
"banned_duel_tip"
:
"You are banned from the random duel system for sending inappropriate messages."
,
...
@@ -144,6 +152,26 @@
...
@@ -144,6 +152,26 @@
"challonge_match_already_finished"
:
"Your current match was already finished. Please call the judge for any help."
,
"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_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."
,
"challonge_player_already_in"
:
"Please do not enter the room you are already in."
,
"vip_remain_part1"
:
"Your supporter identity will be expired at "
,
"vip_remain_part2"
:
". Thanks for your support."
,
"vip_remain"
:
"You have already been a supporter. Welcome back!"
,
"vip_not_bought"
:
"You are not a supporter yet. enter /vip buy KEY to become one."
,
"vip_expired_part1"
:
"Your supporter identity have been expired at "
,
"vip_expired_part2"
:
". Welcome to support again."
,
"vip_key_not_found"
:
"Key not found."
,
"vip_success_new_part1"
:
"Support success. Use "
,
"vip_success_new_part2"
:
" as your name to get the supporter goodies. Thanks for your support."
,
"vip_success_renew"
:
"Support success. Thanks again for your support."
,
"vip_invalid_card_code"
:
"Invalid card code."
,
"vip_cleared_dialogues_part1"
:
"Deleted the dialogue for "
,
"vip_cleared_dialogues_part2"
:
"."
,
"vip_set_dialogues_part1"
:
"Dialogue for "
,
"vip_set_dialogues_part2"
:
" have been set."
,
"vip_cleared_words"
:
"Your join word have been deleted."
,
"vip_set_words"
:
"Your join word have been set."
,
"vip_cleared_victory"
:
"Your victory word have been deleted."
,
"vip_set_victory"
:
"Your victory word have been set."
,
"vip_password_changed"
:
"Password changed."
,
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
},
},
"es-es"
:
{
"es-es"
:
{
...
@@ -357,6 +385,14 @@
...
@@ -357,6 +385,14 @@
"chat_order_tip"
:
"/tip 显示一条提示"
,
"chat_order_tip"
:
"/tip 显示一条提示"
,
"chat_order_chatcolor_1"
:
"/color 查看自己的聊天文字颜色,/color 颜色名 设定自己的聊天文字颜色"
,
"chat_order_chatcolor_1"
:
"/color 查看自己的聊天文字颜色,/color 颜色名 设定自己的聊天文字颜色"
,
"chat_order_chatcolor_2"
:
"/color default 恢复默认聊天字体颜色,/color help 查看所有可用的颜色"
,
"chat_order_chatcolor_2"
:
"/color default 恢复默认聊天字体颜色,/color help 查看所有可用的颜色"
,
"chat_order_vip"
:
"/vip 查看捐助信息,/vip help 显示捐助指令帮助"
,
"chat_order_vip_help"
:
"/vip help 显示此帮助"
,
"chat_order_vip_status"
:
"/vip status 查看自己的捐助信息"
,
"chat_order_vip_buy"
:
"/vip buy 卡密 获取捐助特权"
,
"chat_order_vip_password"
:
"/vip password 新密码 修改自己的密码"
,
"chat_order_vip_dialogues"
:
"/vip dialogues 卡号 台词 设置特定卡的召唤台词"
,
"chat_order_vip_words"
:
"/vip words 台词 设置自己的进场台词"
,
"chat_order_vip_victory"
:
"/vip victory 台词 设置自己的胜利台词"
,
"room_name"
:
"您当前的房间名是"
,
"room_name"
:
"您当前的房间名是"
,
"banned_chat_tip"
:
"您已被禁言!"
,
"banned_chat_tip"
:
"您已被禁言!"
,
"banned_duel_tip"
:
"您的发言存在严重不适当的内容,禁止您使用随机对战功能!"
,
"banned_duel_tip"
:
"您的发言存在严重不适当的内容,禁止您使用随机对战功能!"
,
...
@@ -428,6 +464,26 @@
...
@@ -428,6 +464,26 @@
"challonge_match_already_finished"
:
"你在当前轮次的比赛已经结束,如需重赛,请联系裁判。"
,
"challonge_match_already_finished"
:
"你在当前轮次的比赛已经结束,如需重赛,请联系裁判。"
,
"challonge_match_created"
:
"已建立比赛专用房间,将会自动匹配你的对手。"
,
"challonge_match_created"
:
"已建立比赛专用房间,将会自动匹配你的对手。"
,
"challonge_player_already_in"
:
"请不要重复加入比赛房间。"
,
"challonge_player_already_in"
:
"请不要重复加入比赛房间。"
,
"vip_remain_part1"
:
"你的捐助者特权将在 "
,
"vip_remain_part2"
:
" 时到期。感谢您的支持。"
,
"vip_remain"
:
"尊敬的捐助者,欢迎回来。"
,
"vip_not_bought"
:
"你还未成为捐助者。输入 /vip buy 卡密 进行捐助。"
,
"vip_expired_part1"
:
"你的捐助者特权已在 "
,
"vip_expired_part2"
:
" 时到期。欢迎再次捐助。"
,
"vip_key_not_found"
:
"卡密不存在。"
,
"vip_success_new_part1"
:
"捐助成功。进房时输入 "
,
"vip_success_new_part2"
:
" 即可享受捐助特权。感谢您对服务器的支持。"
,
"vip_success_renew"
:
"续费成功。感谢您对服务器的再次支持。"
,
"vip_invalid_card_code"
:
"非法卡号。"
,
"vip_cleared_dialogues_part1"
:
"已删除 "
,
"vip_cleared_dialogues_part2"
:
" 的召唤台词。"
,
"vip_set_dialogues_part1"
:
"已为 "
,
"vip_set_dialogues_part2"
:
" 设置召唤台词。"
,
"vip_cleared_words"
:
"已删除进场台词。"
,
"vip_set_words"
:
"已设置进场台词。"
,
"vip_cleared_victory"
:
"已删除胜利台词。"
,
"vip_set_victory"
:
"已设置胜利台词。"
,
"vip_password_changed"
:
"密码修改成功。"
,
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
},
},
"ko-kr"
:
{
"ko-kr"
:
{
...
...
ygopro-server.coffee
View file @
c0edb987
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
c0edb987
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