BOAT API [not intended for public use] / only for use in #api-2 in BC.
Fair warning: using the API as not intended will result in it locking up and perhaps being revoked. Currently, only VucicBot by Pancakr is allowed. For anyone else seeking the API, well. No, bro. Sorry, but no. :)
Have a great experience, thank you. -katrwekate typo intended
acustic
a aOHIO OHIO
beginning of boat api:
disclaimer:
a good way to check whether boat is online, is to simply send any sort of api call to boat. if it responds, it is online. however, if you wish to specifically check whether the bot's api is functioning properly, make any other call. if it goes through or errors out due to something else [like lacking arguments or something], then the api is online, however, if it says the api is broken/limited, then youre pretty cooked gng.
boat.api.ping
literally just ping boat. usage: boat.api.ping response (if all is well): vucic.api.ping
boat.api.take
takes away a given amount of kats from the user. usage: boat.api.take[userid] [amnt] response (if all is well): vucic.api.confirmtransaction
boat.api.add
gives the user given amount of kats from the user. usage: boat.api.add[userid] [amnt] response (if all is well): vucic.api.confirmtransaction
boat.api.getuserinfo
returns the requested user information [unless not found or something] usage: boat.api.getuserinfo[userid] [requestedinformation](for the information codes, check BOAT github userinfo.json) response (if all is well): vucic.api.giveuserinfo.ok\n[requestedinformation]
boat.api.getuserinfo.modulebools
returns the requested user module bool [unless not found or not configured] usage: boat.api.getuserinfo.modulebools[userid] [requestedinformation](for the information codes, check BOAT github userinfo.json) response (if all is well): vucic.api.giveuserinfo.modulebools.ok\n[requestedinformation] (True/False)
possible erorrs
if there is a problem with any command, it could respond with: vucic.api.denytransaction[reason4notwrking] possible causes:
the API is limited due to abuse, or is revoked.
you are trying to send inappropriate/unsupported requests.
since boat does not check for syntax properly, you must check the api to make sure you are sending the correct information/receiving it correctly, otherwise, well. i cant help you :) [vucic's argument handling system is fcking goated and awesome]