I'm am currently trying to easily solve the problem of determining the online status of a player, mainly a bot.
One of my codes is as follows,
The problem I am running into is that the output from the link doesn't contain either "+ Kolabuff" or "+Kolabuff".
What I can tell is that the + doesn't either show up or is in a nontext format like in HTML since just "Kolabuff" works by itself. If anyone can figure out how to include the "+" that would be great.
The other option to possibly solve this would be to use the chat command /whois and use the GCLI output to check if they are currently online.
The problem with this one is that I can't find a way to use chat commands in ash code like in conjunction with chat_clan().
One of my codes is as follows,
Code:
if (contains_text(visit_url("showclan.php?whichclan=6741&pwd"),"+KolaBuff"))
{ print("Kolabuff is Online!!!");}
else
{ print("Kolabuff is MIA");}
The problem I am running into is that the output from the link doesn't contain either "+ Kolabuff" or "+Kolabuff".
What I can tell is that the + doesn't either show up or is in a nontext format like in HTML since just "Kolabuff" works by itself. If anyone can figure out how to include the "+" that would be great.
The other option to possibly solve this would be to use the chat command /whois and use the GCLI output to check if they are currently online.
The problem with this one is that I can't find a way to use chat commands in ash code like in conjunction with chat_clan().
Last edited: