r/ComputerCraft • u/chaos_mastta • Aug 30 '24
Chat box sendMessage cooldown?
So I have a for loop that I plan to use to send a list of items in a chest into chat, but it seems like it will only send one message roughly every one second (20 ticks). Is there any way to get around this cooldown time or disable it?
25
Upvotes


8
u/Manto3421 Aug 30 '24
You may be able to adjust that in the settings-file, otherwise i'd just use os.sleep(1). That way it may take (much) longer, but at least it ain't skipping
6
u/CheeseGr0ve Aug 30 '24
If you cant, add a line break inbetween them and batch them as 10. Hopefully linebreaks exists in the chatbox
3
u/pytness Aug 30 '24
Use a buffer and print at the end
3
u/SirEdvin Aug 31 '24
You can reduce cooldown time in settings OR use multiple chat boxes
4
u/superjaja05 Aug 30 '24
There's around 1s of cooldown iirc, but the function returns a value saying whether the message was sent properly or not so you can use that to try multiple times until it works