Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Help] Just want to know how to remove Cron's chat messages

1481584000

Edited 1481584039
Hey so if anyone could tell me what what lines to remove from !Cron ( <a href="https://github.com/Roll20/roll20-api-scripts/blob/" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/</a>... in order to stop it from displaying messages in chat each time an event is set up that would be helpful--it's just spam-y in my opinion and it takes up a pretty significant amount of chat space if you set up more than one event. Anyway, it's been bothering both me and my players--and it seems like it'd be easy to fix for someone who actually knows how, so I'm just throwing this inquiry out there to see if anyone can assist me real quick. Thanks :D &nbsp;&nbsp;
1481589296
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Well, I can't give you exact code lines as your link is broken (error 404), but look for any line that has sendChat(...). You should be able to figure out which sendChat's are for things you want to delete based on what is in the message portion of it (the second argument).
1481596008

Edited 1481596664
Ugh. My bad. I'm gonna make an attempt right now, but just in case of failure, here is a not broken link:&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/tree/" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/</a>... Edit: Yeah, this was the reason I ended up asking rather than muscling it myself, I can't seem to delete the right stuff without completely breaking the script. I'm usually pretty good at targeting the stuff I don't like about a script and deleting it without issue, but in this case it doesn't appear as cut and dry as some other scripts, so I'm having trouble differenciating what it is that needs to be removed and what needs to stay in, it all sort of looks meshed together to my untrained eyes. :(&nbsp;
1481606596
Lithl
Pro
Sheet Author
API Scripter
It looks line line 47 is sending a message to chat whenever the job is processed. Lines 187 and 216 appear to be responsible for sending a message when a job is created.
1481607633

Edited 1481607728
Thank you. That worked perfectly! I appreciate the help, that cleared up a ton of useless text being dumped into the chat and is gonna help everyone keep track of what's actually going on. Including (especially) me. haha
1481615154

Edited 1481615560
Uh...So big problems--I imagine they must be related somehow, but I have no idea what happened, it was all working fine and now suddenly cron seems to be irreversibly broken. I uninstalled and reinstalled a fresh version and it still gives me the same error whenever an event in the tracker is triggered. I have no clue what the problem could be, at all. Here is the error message I'm getting from API: for reference, the error message generated was: TypeError: Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined at handleInput (apiscript.js:7976:36) at eval (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:144:34), &lt;anonymous&gt;:65:16) at Object.publish (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:144:34), &lt;anonymous&gt;:70:8) at /home/node/d20-api-server/api.js:1394:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:46
I've dealt with an identical situation before and fixed it by reseting cron's state. Here's exactly how I recommend carefully proceding: Enter your Game in a separate tab (such that the API sandbox can spin up). On the API Scripts page of your Game, disable cron. Save this as a New Script. Disable this newly-installed script. Enable cron and test.
1481616093

Edited 1481617018
Also just realized apparently this error only seems to occur when I put a token-mod command into cron for some reason. Of all the scripts I've had, token-mod has easily been the most stable, I've never had problems with it. So I'm not sure why its suddenly not working now. Also, Time Tracker apparently&nbsp;has some problem as well, as it is now giving me this error: For reference, the error message generated was: SyntaxError: Unexpected identifier &nbsp; The most frustrating part about this is these scripts are the ones I've had little to absolutely no problems with in the past year I've been using the roll20 api and now suddenly everything broke. No idea what happened. :( Time Tracker:&nbsp;<a href="https://app.roll20.net/forum/post/2691179/script-timetracker-tracking-ingame-time-and-events/?pageforid=2691179" rel="nofollow">https://app.roll20.net/forum/post/2691179/script-timetracker-tracking-ingame-time-and-events/?pageforid=2691179</a>
1481616894

Edited 1481617435
Hey thanks for the help Silvyre. Unfortunately though, it didn't seem to work. I'm still getting the same error when I load up cron again, despite its state being wiped clean. D: Well, I'm gonna turn in for now--hopefully I can sort this out once I've had some sleep, everything was working together so awesomely right up until this moment tonight. And the thing is, I seemingly did nothing to cause it, as the change I made didn't seem to cause any problems the first hour or so I was playing around with it. Confusing, hopefully someone will have some insight for me tomorrow. Thanks again.