NuSkooler / enigma-bbs

ENiGMA½ BBS Software
https://nuskooler.github.io/enigma-bbs/
BSD 2-Clause "Simplified" License
534 stars 104 forks source link

Enigma Rest API #546

Open biggiecheesetherat opened 1 month ago

biggiecheesetherat commented 1 month ago

I am developing a Discord bot to link my BBS' accounts to their Discord account. Is there a API I can use to send messages to users?

NuSkooler commented 1 month ago

Hi @biggiecheesetherat

There currently is not a REST-like API for these types of things. You can certainly write your own web handler (they are pluggable in enig) that could expose a endpoint.

For sending the message itself, see:

Basically, you need to get the data from Discord -> enigma (perhaps the web handler) then just pend a interrupt item to the user(s).

cognitivegears commented 3 weeks ago

I think there may be a way to do this - if you use the ActivityPub branch you should be able to integrate with that like it's any other Fediverse server - not 100% integrated and that ActivityPub branch hasn't been merged yet, but may be helpful.