Feature Headless ChatManager?

Obeliks

Member
As far as I can tell from the code, there is currently no way to initialize the ChatManager (and start the ChatPoller) when running in a headless instance.

I have two questions/suggestions regarding this:
  • should KolMafia main automatically start the ChatManager when a chatbotScript is set?
  • should the SetPreferencesCommand have special handling to do this once a chatbotScript is set during runtime (a little bit similar as handling customCombatScript for example)?
    • if so, should the ChatManager be automatically disposed when the preference is unset? This might break an open chat frame or relay browser chat pane.
If none of these, should there at least be some RuntimeLibrary functions to start the chat?
 

heeheehee

Developer
Staff member
Historically I did this on Linux (in a VM) by running `Xvfb :99` to create a virtual X server, then specifying `DISPLAY=:99` to connect to it when running Mafia.

I do think there's value in spinning up ChatManager in headless mode (we do something vaguely similar with `relay nobrowser`).
 
Top