1
0
Fork 0
mirror of https://github.com/ChomeNS/chomens-bot-mc.git synced 2025-04-24 04:53:39 -04:00

fix message length

This commit is contained in:
ChomeNS 2022-10-16 14:33:23 +07:00
parent 06712e141a
commit f71167fda9

View file

@ -205,7 +205,7 @@ function main() {
discordQueue = setInterval(function() {
if (dcmsg.queue!='') {
channel.send('```ansi\n' + dcmsg.queue.substring(0, 1997) + '\n```');
channel.send('```ansi\n' + dcmsg.queue.substring(0, 1986) + '\n```');
dcmsg.queue = '';
}
}, 1000);
@ -307,7 +307,7 @@ function main() {
if (message.toMotd().startsWith('§8[§r§eChomeNS §r§9Discord§r§8] §r§c')) return;
if (message.toString()==='') return;
if (message.toString().startsWith(' ')) return;
dcmsg.queue += '\n' + discordMsg.substring(0, 1998);
dcmsg.queue += '\n' + discordMsg;
} catch (e) {
return;
}