[Help] AdvancedCalendar without weather and lunar phases

1507367404
Hi All, I've been trying to edit the Advanced Calendar script so it didn't have weather and lunar phases, I'm going to be running a game that goes all over the world. However, I've gotten a bit stuck. I got around one error and then got stuck at another one when I call !cal. For reference, the error message generated was: TypeError: AdvancedCalendar._GetOptionsFromTokens is not a function TypeError: AdvancedCalendar._GetOptionsFromTokens is not a function at Object.HandleInput (apiscript.js:455:44) at apiscript.js:560:42 at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1510: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 Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) I figure I haven't removed everything I need to but for the life of me can't figure it out, even though it's telling me exactly where to look. This is where I'm at: https://gist.github.com/anonymous/1b12e14cb320672e... Any help is muchly appreciated.
1507367457
The one I'm working from, for referance. https://github.com/caioviel/roll20scripts/tree/master/calendar
1507371804
Managed to fix it. For those that are interested. https://gist.github.com/anonymous/1f6b7d2277bbef17cb4c4801bf6c8fa3
FWIW, unless a world has some extremely strange physical setup, moon phases should be universal regardless of your position on the surface. They might vary slightly by up to the better part of a day, depending on your east/west location, and of course rise/set times will be all over the place, but phase is more-or-less consistent. Just mentioning in case it would save you time or effort.