You can use a custom script to accomplish what you’re asking. At this time I’m pretty sure customapi is supposed to just return the text result from a url (or ‘api’). customapijson does similar but it expects the result to be in a json format.

Actually PhantomBot scripts have to be written in JS because we use Rhino. The websocket api we have for the panel is a secure method for allowing outside programs to interact with the bot.

I believe a decent bit of the reasoning is due to how the bot accesses the database, and to preserve our read/write queue. You’d have to wait for IO or Scania to chime in for a more detailed answer behind the logic.

There are write methods (update and delete), please review the documentation.

You can choose to use MySQL or the default of SQLite3. There is also an unsupported feature to use H2 that we have been testing and playing with internally.

The API can be used as it is REST calls rather than WebSockets. Some folks prefer REST calls for simple interaction rather than setting up WebSockets. The Panel uses WebSockets to keep a connection open for transmitting data rather than calling several REST calls. Anyone can use the WebSockets interface if they want as well.