on *:TEXT:!Rank:#: {
JSONClose api
JSONOpen -uwd api https://euw.api.pvp.net/api/lol/euw/v2.5/league/by-summoner/27028362/entry?api_key=4dceac67-7859-4fe6-8b32-3dc93f604d86
JSONURLOption api User-Agent Riot-Games-Developer-Portal
JSONURLOption api Accept-Language en-US
JSONURLOption api Accept-Charset ISO-8859-1,utf-8
JSONGet api https://euw.api.pvp.net/api/lol/euw/v2.5/league/by-summoner/27028362/entry?api_key=4dceac67-7859-4fe6-8b32-3dc93f604d86
%temp = $json(api,"27028362","queue")
IF (%temp) {
msg $chan %temp
}
ELSE {
msg $chan test
}
}