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:
parent
06712e141a
commit
f71167fda9
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue