{"id":23171800,"url":"https://github.com/burritosoftware/arcaea-linkplay-webhook","last_synced_at":"2025-04-04T23:43:04.878Z","repository":{"id":202989963,"uuid":"678610533","full_name":"burritosoftware/arcaea-linkplay-webhook","owner":"burritosoftware","description":"Reads a systemd unit for Arcaea-server's Link Play server for new rooms and sends a message in Discord announcing them","archived":false,"fork":false,"pushed_at":"2023-10-22T22:45:49.000Z","size":58,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-10T08:16:37.222Z","etag":null,"topics":["arcaea","arcaea-server","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/burritosoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-15T00:40:20.000Z","updated_at":"2024-05-03T13:22:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"58d38030-acf0-4b78-801b-9e3f1b8c5580","html_url":"https://github.com/burritosoftware/arcaea-linkplay-webhook","commit_stats":null,"previous_names":["burritosoftware/arcaea-linkplay-webhook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burritosoftware%2Farcaea-linkplay-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burritosoftware%2Farcaea-linkplay-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burritosoftware%2Farcaea-linkplay-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burritosoftware%2Farcaea-linkplay-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/burritosoftware","download_url":"https://codeload.github.com/burritosoftware/arcaea-linkplay-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266481,"owners_count":20910832,"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":["arcaea","arcaea-server","python"],"created_at":"2024-12-18T04:19:41.076Z","updated_at":"2025-04-04T23:43:04.848Z","avatar_url":"https://github.com/burritosoftware.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arcaea Linkplay Webhook\n![Icons](https://skillicons.dev/icons?i=py,linux,discord)\n\n[![WakaTime](https://wakatime.com/badge/github/burritosoftware/arcaea-linkplay-webhook.svg)](https://wakatime.com/badge/github/burritosoftware/arcaea-linkplay-webhook)\n\n---\n\n## How this works\nThis script reads the logs for [Arcaea-server](https://github.com/Lost-MSth/Arcaea-server)'s Link Play server, running in a systemd unit.\nIt parses log messages for new rooms and sends a nicely-formatted message in Discord, announcing them and any players that join.\n\n![Preview](https://taidums.are-really.cool/5zReRDx.png)\n\n## Limitations\nUnfortunately, [Arcaea-server](https://github.com/Lost-MSth/Arcaea-server)'s Link Play server does not print log messages when the host of a room changes, or when players leave/the room is closed. Therefore, the messages sent by this webhook won't be edited if a player leaves or the room is closed.\n\n## Installation\n1. Make sure that you're running the Link Play server seperately. [Follow this guide](https://github.com/Lost-MSth/Arcaea-server/wiki/Instruction-for-use#run-a-stand-alone-link-play-server) to configure that.\n2. Create a systemd service to run the Link Play server under.  \n   For example, in a file named `arcaea-linkplay.service` at `/etc/systemd/system`:\n   ```ini\n   [Unit]\n   Description=Arcaea Link Play Server\n   After=network-online.target\n   Wants=network-online.target\n\n   [Service]\n   Type=simple\n   User=arc\n   WorkingDirectory=/home/arc/Arcaea-server/latest version\n   ExecStart=/usr/bin/python3 run_linkplay_server.py\n\n   [Install]\n   WantedBy=multi-user.target\n   ```\n3. Clone this repository, then duplicate `.env-example` to `.env`, and edit the file with the name of your systemd service and the URL of your Discord webhook.\n   ```bash\n   git clone https://github.com/burritosoftware/arcaea-linkplay-webhook.git\n   cd arcaea-linkplay-webhook\n   cp .env-example .env\n   nano .env\n   ```\n4. Install the requirements. Then, start the watcher, create a Link Play room, and verify that a message was sent.\n   ```bash\n   python3 -m pip install -U -r requirements.txt\n   python3 watcher.py\n   ```\n5. If it all looks good, it's best to create a systemd service for this too, like `arcaea-notif.service` at `/etc/systemd/system`:\n   ```ini\n   [Unit]\n   Description=Arcaea Linkplay Webhook\n   After=network-online.target\n   Wants=network-online.target\n\n   [Service]\n   Type=simple\n   User=arc\n   WorkingDirectory=/home/arc/arcaea-linkplay-webhook\n   ExecStart=/usr/bin/python3 watcher.py\n\n   [Install]\n   WantedBy=multi-user.target\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburritosoftware%2Farcaea-linkplay-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburritosoftware%2Farcaea-linkplay-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburritosoftware%2Farcaea-linkplay-webhook/lists"}