refactor: replace old bot code with Matrix infra configs and scripts
- Remove obsolete Python bot (Wordle, commands, callbacks, welcome) - Add hookshot/ — all 11 webhook transformation functions + deploy.sh - Add cinny/ — config.json and dev-update.sh (nightly dev branch build) - Add landing/ — matrix.lotusguild.org landing page HTML - Add systemd/ — livekit-server, draupnir, cinny cron unit files - Add draupnir/ — production config (access token redacted) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1
systemd/cinny-dev-update.cron
Normal file
1
systemd/cinny-dev-update.cron
Normal file
@@ -0,0 +1 @@
|
||||
0 3 * * * root /usr/local/bin/cinny-dev-update.sh
|
||||
22
systemd/draupnir.service
Normal file
22
systemd/draupnir.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Draupnir Matrix Moderation Bot
|
||||
After=network.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/draupnir
|
||||
ExecStart=/usr/bin/node /opt/draupnir/lib/index.js --draupnir-config /opt/draupnir/config/production.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=draupnir
|
||||
|
||||
# Resource limits
|
||||
MemoryMax=512M
|
||||
CPUQuota=80%
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
3
systemd/livekit-clear-port.sh
Normal file
3
systemd/livekit-clear-port.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#\!/bin/bash
|
||||
pkill -x livekit-server 2>/dev/null && sleep 1
|
||||
exit 0
|
||||
15
systemd/livekit-server.service
Normal file
15
systemd/livekit-server.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=LiveKit SFU Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=-/bin/bash -c 'pkill -x livekit-server; sleep 1'
|
||||
ExecStart=/usr/local/bin/livekit-server --config /etc/livekit/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
KillMode=control-group
|
||||
LimitNOFILE=65535
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user