mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -92,12 +92,15 @@ class ControllerPlugin extends BaseControllerPlugin {
|
|||||||
nrc_msg = `${dt} ${nrc_msg}`
|
nrc_msg = `${dt} ${nrc_msg}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nrc_msg.length <= 1950) {
|
||||||
|
await channel.send(nrc_msg, { allowedMentions: { parse: [] }});
|
||||||
|
} else {
|
||||||
while (nrc_msg.length > 0) {
|
while (nrc_msg.length > 0) {
|
||||||
let nrc_cmsg = nrc_msg.slice(0, 1950);
|
let nrc_cmsg = nrc_msg.slice(0, 1950);
|
||||||
let nrc_lindex = nrc_cmsg.lastIndexOf(' ');
|
let nrc_lindex = nrc_cmsg.lastIndexOf(' ');
|
||||||
|
|
||||||
if (nrc_lindex !== -1) {
|
if (nrc_lindex !== -1) {
|
||||||
nrc_cmsg = nrc_cmsg.slice(0, nrc_lindex).trim();
|
nrc_cmsg = nrc_cmsg.slice(0, nrc_lindex);
|
||||||
nrc_msg = nrc_msg.slice(nrc_lindex).trim();
|
nrc_msg = nrc_msg.slice(nrc_lindex).trim();
|
||||||
} else {
|
} else {
|
||||||
nrc_msg = nrc_msg.slice(1950).trim();
|
nrc_msg = nrc_msg.slice(1950).trim();
|
||||||
@@ -108,6 +111,7 @@ class ControllerPlugin extends BaseControllerPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
ControllerPlugin
|
ControllerPlugin
|
||||||
|
|||||||
Reference in New Issue
Block a user