an API would probably be the best solution. i feel something with websockets might work well for bots that read every new message that's sent, but a regular HTTP API should still be present.