yive / gameapis Goto Github PK
View Code? Open in Web Editor NEWAPI web service for multiple games
API web service for multiple games
I am lazy.
Rust is fast af & hopefully won't require me to have multiple VPS's anymore at least for GameAPIs
GameAPIs/app/controllers/APIs/7D2D/Query/Info/IndexController.php
Lines 62 to 76 in 76b44aa
GameAPIs/app/library/Minecraft/Query/MCPEPing.php
Lines 29 to 118 in 6706ef0
Switch statement contains a lot of duplicated code, a solution for this could be the use of a key-value array, where the keys are the color codes and the values are the colors/html tags.
EDIT: same goes for MCPing.php
Something doesn't like valid domains with unicode/untranslated punycode. See: https://use.gameapis.net/arma3/query/players/iā¤.ws
Same with invalid domains using disallowed ASCII characters. See: https://use.gameapis.net/arma3/query/players/1337_H@k$.example.com
It also throws the same error when attempting to fetch from (sub)domains that are registered, but have no dns record(s) assigned. See: https://use.gameapis.net/arma3/query/players/no-dns-record.example.com
GameAPIs/app/views/partials/head.phtml
Lines 72 to 151 in 6706ef0
Switch contains more duplicate code than it should. A much cleaner way would be to do something along the lines of this:
case strpos($this->tag->getTitle(), "Documentation") !== false: {
$subtitle = $this->tag->getTitle() . " Documentation";
$button = $this->tag->getTitle();
}
that shortens the code from about 80 lines to 4.
First off I'll need to rewrite my libraries to Crystal because there's no libraries for querying game servers.
Resources:
https://crystal-lang.org/docs/
https://github.com/veelenga/awesome-crystal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.