HubGet

by Super Saiyan X
A very small library with no useful features, such as getting a list of fans from the hub; and retrieving your hub ID. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://SuperSaiyanX.hubget##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://SuperSaiyanX.hubget##version=4

267 downloads
Version 4
Date added: Mar 4 2012
Last updated: Dec 30 2013
8 fans
This library currently has the following features;
Get_HubID(hub)
returns the hub's Hub ID, which is a numerical value which appears to be increasing incrementally. This value can be used to link to your hub in a fashion;
http://www.byond.com/hub/?hub=101938

Get_Fans(hub)
returns a list of fans, from a hub. The procedure will put them into an associative list, with members having the text "MEMBER" being associated with them, in the list.

Get_User_Title(key or ckey)
returns the user's BYOND title, such as "Moderator", "Member" and so on.

Get_Games_Live()
returns the Games Live! value from the Games menu

Get_Players_Online()
Returns the Players Online value from the Games menu


You can pretty much ignore the stuff in the HubGet.dm file, which is just the programming for the procedures. Both procedures return the values needed, and usage of them can be seen in the demo.dm file.

Comments

Yusuke13: (Sep 12 2012, 7:29 pm)
I love this. Awesome work!