Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
dc-plugins
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
JoyJ
dc-plugins
Commits
40041aeb
Commit
40041aeb
authored
Aug 04, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update QQ group
parent
d9f425f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
DuelChronicle_Random.js
DuelChronicle_Random.js
+9
-7
No files found.
DuelChronicle_Random.js
View file @
40041aeb
...
...
@@ -26,7 +26,7 @@ ygopro.ctos_follow_after("UPDATE_DECK", true, async (buffer, info, client, serve
break
;
}
}
if
(
AllowSelfDeck
&&
client
.
name
.
substr
(
0
,
4
)
==
"
[M
M
]
"
)
{
if
(
AllowSelfDeck
&&
client
.
name
.
substr
(
0
,
4
)
==
"
[M
D
]
"
)
{
return
;
}
...
...
@@ -56,6 +56,8 @@ ygopro.ctos_follow_after("UPDATE_DECK", true, async (buffer, info, client, serve
client
.
side
=
global
.
dc_decks_side
[
deckindex
];
var
compat_deckbuf
=
client
.
main
.
concat
(
client
.
side
);
client
.
deckMd5
=
global
.
dc_decks_md5
[
deckindex
];
// ygopro.stoc_send_chat(client, "md5:"+global.dc_decks_md5[deckindex], ygopro.constants.COLORS.YELLOW);
}
try
{
...
...
@@ -137,27 +139,27 @@ ygopro.ctos_follow_after("UPDATE_DECK", true, async (buffer, info, client, serve
ygopro
.
ctos_follow_before
(
'
CHAT
'
,
true
,
async
function
(
buffer
,
info
,
client
,
server
,
datas
)
{
room
=
ROOM_all
[
client
.
rid
];
if
(
!
room
)
{
ygopro
.
stoc_send_chat
(
client
,
"
失败:请在决斗中使用指令。
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
//
ygopro.stoc_send_chat(client, "失败:请在决斗中使用指令。", ygopro.constants.COLORS.YELLOW);
return
;
}
if
(
!
client
.
deckMd5
)
{
ygopro
.
stoc_send_chat
(
client
,
"
失败:卡组检索异常
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
//
ygopro.stoc_send_chat(client, "失败:卡组检索异常", ygopro.constants.COLORS.YELLOW);
return
;
}
var
md5
=
client
.
deckMd5
;
if
(
room
.
duel_stage
!=
ygopro
.
constants
.
DUEL_STAGE
.
DUELING
)
{
ygopro
.
stoc_send_chat
(
client
,
"
失败:未在有效的决斗期间
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
//
ygopro.stoc_send_chat(client, "失败:未在有效的决斗期间", ygopro.constants.COLORS.YELLOW);
return
;
}
var
msg
=
_
.
trim
(
info
.
msg
);
if
(
msg
.
substring
(
0
,
7
)
!=
"
/report
"
)
{
ygopro
.
stoc_send_chat
(
client
,
"
失败:未知命令
"
+
info
.
msg
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
//
ygopro.stoc_send_chat(client, "失败:未知命令"+info.msg, ygopro.constants.COLORS.YELLOW);
return
;
}
msg
=
msg
.
substring
(
7
);
msg
=
_
.
trim
(
msg
);
if
(
msg
.
length
<
2
)
{
ygopro
.
stoc_send_chat
(
client
,
"
请以 /report 举报原因 的格式写明举报原因
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
ygopro
.
stoc_send_chat
(
client
,
"
失败:
请以 /report 举报原因 的格式写明举报原因
"
,
ygopro
.
constants
.
COLORS
.
YELLOW
);
return
;
}
//"CREATE TABLE DCReportServer(reporterIp varchar(255),reportDate DateTime)";
...
...
@@ -197,7 +199,7 @@ ygopro.ctos_follow_before('CHAT', true, async function(buffer, info, client, ser
ygopro
.
stoc_send_chat
(
client
,
"
如有疑问,请记录此字符串,并向编年史群的管理者反馈:
"
+
md5
,
ygopro
.
constants
.
COLORS
.
RED
);
return
;
}
msg
=
(
new
Date
().
toString
())
+
"
- 由服务器端提交(提交者:
"
+
client
.
name
+
"
)
\r\n
录像ID:
"
+
room
.
cloud_replay_id
+
"
\r\n\r\n
"
+
msg
;
msg
=
(
new
Date
().
toString
())
+
"
- 由服务器端提交(提交者:
"
+
client
.
name
+
"
,云录像:R#
"
+
room
.
cloud_replay_id
+
"
)
\r\n\r\n
"
+
msg
;
sql
=
"
INSERT INTO DCReport VALUES(?,?,?,'')
"
;
sqlParams
=
[
md5
,
client
.
ip
,
msg
];
mysqldb
.
query
(
sql
,
sqlParams
,
function
(
err
,
result
)
{
...
...
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