Quantcast

Jump to content


Photo

Flight Rising Shell


  • Please log in to reply
1 reply to this topic

#1 Josh

Josh
  • 318 posts

Posted 12 February 2016 - 05:58 AM

Source code

 

This is a continuation of my previous topic regarding NodeJS and Flight Rising.

 

This is an interactive shell program for communicating with Flight Rising. Eventually this program will evolve into something with a native GUI, but for now it's going to be done through a shell terminal. 

As of writing this post it's barely functional, but I wanted to put up the repository should anyone be interested in learning or contributing. 

 

Installation:

$ git clone https://github.com/jmgilman/flightrising-shell
$ cd flightrising-shell
$ npm install

Usage:

$ node app.js
> login username password
Logged in successfuly!
> gather hunt shadow
-- Results --

You can type help to see a list of currently configured commands. Type a command without any additional parameters to see additional help for that command. Finally, you can use the up and down arrow keys (like a normal terminal) to view a history of the commands you've already typed in the current session.

 

Once you've logged in, the cookies for the session are automatically saved in a local file. If you quit the application and then re-open it and login again, the application will attempt to use your previously saved session first prior to completely logging back in. This enhances realism as it would be odd if you had to actually log in every time you ran the program. 

 

I'm going to assume 99% of this forum won't be able to use this at this point, but for the 1% may that know NodeJS, feel free to play with it.


Edited by Josh, 12 February 2016 - 06:36 AM.


#2 Josh

Josh
  • 318 posts

Posted 14 February 2016 - 01:10 AM

Here is a GIF showing sample usage:

 

l4KhIKJ9QCjj9PbTG.gif

 

Does anyone have recommendations or suggestions as to what they would like to see automated in Flight Rising? I'm open to feature requests at this point as I am not interested in simply automating the whole site :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users