{"id":20072611,"url":"https://github.com/nh2/lambdabot-zulip","last_synced_at":"2025-05-05T21:30:20.611Z","repository":{"id":56845290,"uuid":"158427134","full_name":"nh2/lambdabot-zulip","owner":"nh2","description":"Lambdabot for Zulip Chat","archived":false,"fork":false,"pushed_at":"2018-12-20T22:13:26.000Z","size":15,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T11:09:26.477Z","etag":null,"topics":["haskell","zulip-bot"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nh2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-20T17:26:37.000Z","updated_at":"2023-03-27T16:36:11.000Z","dependencies_parsed_at":"2022-09-08T10:50:37.844Z","dependency_job_id":null,"html_url":"https://github.com/nh2/lambdabot-zulip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nh2%2Flambdabot-zulip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nh2%2Flambdabot-zulip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nh2%2Flambdabot-zulip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nh2%2Flambdabot-zulip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nh2","download_url":"https://codeload.github.com/nh2/lambdabot-zulip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579976,"owners_count":21771247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","zulip-bot"],"created_at":"2024-11-13T14:41:23.529Z","updated_at":"2025-05-05T21:30:20.309Z","avatar_url":"https://github.com/nh2.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambdabot-zulip\n\nA [`lambdabot`](https://wiki.haskell.org/Lambdabot)-like bot for [Zulip](https://zulipchat.com/).\n\nCan evaluate Haskell expressions and show their types.\n\n### Screenshot\n\n![Screenshot of the bot in action](images/evaluation-screenshot.png)\n\n\n## Usage\n\nRun the `lambdabot-zulip-server` executable to start the bot.\n\nIt reads a `settings.yaml` in the working directory (or passed via command line).\n\nSee [`example-settings/settings.yaml`](example-settings/settings.yaml) for an example.\nYou have to provide Zulip API credentials, and streams (channels) the bot should be active on.\n\n## Systemd unit\n\nFor the simple case that you want to run this in a small throwaway VM server as `root`, here's a systemd unit file.\n\nIt assumes that you have the repo cloned at `/root/lamdabot-zulip` and did `stack build` in there.\n\nPut this into `/etc/systemd/system/lambdabot-zulip-server.service`:\n\n```\n[Unit]\nDescription=Lambdabot Zulip server\nAfter=syslog.target network.target\nStartLimitIntervalSec=0\n\n[Service]\nExecStart=/usr/local/bin/stack \"exec\" \"lamdabot-zulip-server\"\nWorkingDirectory=/root/lambdabot-zulip\nRestart=always\nEnvironment=\"HOME=/root\"\nMemoryMax=1G\n\n[Install]\nWantedBy=multi-user.target\n```\n\nNote that you can't `ExecStart` the executable directly due to https://github.com/gwern/mueval/issues/16#issuecomment-448707773.\n\nTo load the service and have it start at boot:\n\n```\nsystemctl daemon-reload\nsystemctl enable lambdabot-zulip-server\nsystemctl start lambdabot-zulip-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnh2%2Flambdabot-zulip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnh2%2Flambdabot-zulip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnh2%2Flambdabot-zulip/lists"}