Alright, to give a bit of feedback.
I play this game, with loads of planets. MikeChat helped me downloading their database dumps in this thread

So, the idea of the script is to read that txt file using my bot.
Like !whois x:y:z will give you information on size, score etc. Almost like an interface to the game itself cool

When searching ($read) for info from this txt file, using wildmatch (iswm) characters, and processing all 3200+ lines, I noticed it freezes my bot for like 10 to 12 seconds. And that was for only 1 request, imagine 5 people use the same command!!!! Obviously not the way forward. So I started using hash tables instead and load the txt file in a hash table every hour.

Now I want to make all kinds of scripts that can read from this hash table. Like for example the top5 requested above.

I have to say the script of KingTomato works like a charm. I'm fine tuning that, and it's now returning the info in like 2/3 seconds. Obviously already a lot better.

Thx to ya'll for the help guys laugh