Jump to content

Bot Signatures


Recommended Posts

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.

selectAll.thumb.PNG.818dadefd22fcbd580d23c01b8828da1.PNG

When a request is made to retrieve the data we do a sum of the columns

sum.PNG.fd66716c119f59e4ce250384967d56f0.PNG

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.

signature2.png.0a826d3259b61825114f6d29ded4567b.png

 

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
init.PNG.099abb44c34e120de188fdf3a2ace484.PNG

 

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.

  • Like 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...