Jump to content

Lone

OG Member
  • Posts

    2
  • Joined

  • Last visited

  • Days Won

    1

Other groups

Members

About Lone

OG Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Lone's Achievements

Bronze Member

Bronze Member (1/10)

  1. Hey everyone, as EpicBot is beginning anew I decided that I wanted to learn and begin publishing high quality scripts. Before I start on writing scripts my preliminary project is being able to capture the data produced from scripts. I wanted to share with you all a bit of my progress and gauge interest for this type of stuff. A REST API with endpoints for submitting data and then retrieving it was created. Currently the data is only being formatted into an image but there's a lot that can be expanded upon here. New data is sent as JSON, an example of a request would look like: URL: /stats/:botName Method: POST Body: { "user": "lone", "key": "secretkey" "stats": { "gp": 3500, "kills": 15, "runtime": 300, "attack": 1 } } Below is an example of data that has been added for the bot test bot and user lone. This data is from two separate runs. When a request is made to retrieve the data we do a sum of the columns With that the data is inserted into an SVG ( am all thumbs with gfx ) and sent back. Formatting for data like time, kills, and profit will be added. This work is still only local but my poc is running and you can see how it will work a little better. It takes the image below and replaces the tilde with a random number, you can see that live ( currently ) here Just want to throw out a big thanks to both proto and smile for their script guides, they will be a huge help to me as I get started.
×
×
  • Create New...