https://github.com/programmerdan/glados
Civcraft bot: clone of skynet, with snitch API and CORS proxy for Civtrade and Civbounty
https://github.com/programmerdan/glados
Last synced: 8 months ago
JSON representation
Civcraft bot: clone of skynet, with snitch API and CORS proxy for Civtrade and Civbounty
- Host: GitHub
- URL: https://github.com/programmerdan/glados
- Owner: ProgrammerDan
- Created: 2015-02-19T15:51:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-19T13:50:08.000Z (over 11 years ago)
- Last Synced: 2025-04-04T02:41:57.257Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 10.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#GLaDOS
A mineflayer bot for player stats and snitch networking, plus a CORS proxy for Civbounty and Civtrade.
#API Docs
All results are in JSON and use querystrings for arguments. I'm very open to changing this to an exact clone of Skynet's API, but can't find any documentation.
`216.249.101.26:3000/players`: array of online players as objects, currently only one element each: `username`
`216.249.101.26:3000/players/login`: Returns logins and logouts of players, in reverse chronological order. Don't use without `limit`, as it will be very long. Like this:
```
{
username: String,
logout: Boolean,
date: Date
}
```
If `logout` is false, it's a login, if it's true it's a logout.
Takes `username`, `logout`, `date`, `limit` and `skip` arguments. `limit` is the number of results you want, `skip` the number to omit first. Useful for pagination.
`216.249.101.26:3000/entries`: Returns an array of snitch entries, like so:
```
{
username: String,
snitchName: String,
coords: {
x: Number,
y: Number,
z: Number
},
date: Date
}
```
Also supports `limit` and `skip`.
`216.249.101.26:3000/civtrade/shops`: Forwards from civtrade.herokuapp.com, adding CORS headers. See https://github.com/zacstewart/civtrade for details.
`216.249.101.26:3000/perpetrators`: Forwards from civbounty.com/api/perpetrators, adding CORS headers. Bug DecoyDrone for details. (seriously do, he needs to document his API better)