A lambdabot
-like bot for Zulip.
Can evaluate Haskell expressions and show their types.
Run the lambdabot-zulip-server
executable to start the bot.
It reads a settings.yaml
in the working directory (or passed via command line).
See example-settings/settings.yaml
for an example.
You have to provide Zulip API credentials, and streams (channels) the bot should be active on.
For the simple case that you want to run this in a small throwaway VM server as root
, here's a systemd unit file.
It assumes that you have the repo cloned at /root/lamdabot-zulip
and did stack build
in there.
Put this into /etc/systemd/system/lambdabot-zulip-server.service
:
[Unit]
Description=Lambdabot Zulip server
After=syslog.target network.target
StartLimitIntervalSec=0
[Service]
ExecStart=/usr/local/bin/stack "exec" "lamdabot-zulip-server"
WorkingDirectory=/root/lambdabot-zulip
Restart=always
Environment="HOME=/root"
MemoryMax=1G
[Install]
WantedBy=multi-user.target
Note that you can't ExecStart
the executable directly due to TerenceNg03/mueval#16 (comment).
To load the service and have it start at boot:
systemctl daemon-reload
systemctl enable lambdabot-zulip-server
systemctl start lambdabot-zulip-server