I wanted to be able to play IFs in Discord but I only found bots that could play Z-machine games (and not Glulx), so I wrote my own bot in Python.
You can find it here: bitbucket.org/Natrium729/xyzzanie
I hope it is enough documented to get you started. It can play any parser games a long as there exists a remglk implementation of the virtual machine concerned.
Note that you’ll have to host it and compile the interpreters yourself (all instructions are at the link above).
It hasn’t been extensively tested in real conditions (many game sessions simultaneously or multiple people submitting commands at the same time, for example) yet but it works.
Any questions, comments, suggestions or bug reports are welcome!