Skip to content

Instantly share code, notes, and snippets.

@MrPowerGamerBR
Created June 17, 2017 13:53
Show Gist options
  • Select an option

  • Save MrPowerGamerBR/ed0051e5d904dd006e2319fb8015dff2 to your computer and use it in GitHub Desktop.

Select an option

Save MrPowerGamerBR/ed0051e5d904dd006e2319fb8015dff2 to your computer and use it in GitHub Desktop.
Comando customizado para a https://loritta.website/
var json = pegarConteúdoDeUmaURL("https://mcapi.ca/query/jogar.sparklypower.net/players"); // Pegar o texto em JSON
var obj = JSON.parse(json);
var online = obj.players.online;
var max = obj.players.max;
contexto.responder("**" + online + "**/**" + max + " ** players online no SparklyPower! 🎉");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment