helper for connecting to https://thetravelers.online/ from node
example
npm i --save travelersapi
; ; traveler.on.update = ;traveler.on.updateImmediate = ;traveler.on.evalJS = ; traveler .login"ACCOUNT T= COOKIE VALUE", "CAPTCHA TOKEN" .thenconsole.log"Ready!", startingData; process.on"unhandledRejection",;
Note: the typescript types provided are incomplete! You may wish to not use them or make your own.
account token
- go to https://thetravelers.online/ and log in.
- go to the storage tab or your browser's equivalent
- find the cookie
T=cdsajnkcjnlsdcnjalkcjandlsk
- The part after the = is your token.
captcha token
- go to thetravelers.online
- complete the captcha (do not press "wake up")
- paste this script into the console:
;
you have to do this every time you log in. tokens expire quickly and you cannot reuse the same token multiple times.
help
in a web browser logged into https://thetravelers.online/, you can log all messages sent to and from the server by psating this in the console:
windowgsend = SOCKETsend;SOCKET console window;windowadata = ENGINEapplyData;ENGINE console window;
getPerlin, containsEvent
containsEvent(138750, 62680)
⇒ true
containsEvent(138750, 62681)
⇒ false