K Kituwa Automations
--:--
DC

Infrastructure · Systemd service

ReferStash Discord Bot

Long-running Discord bot for ReferStash.

Running Always on

Control panel

Run it now or change the timing.

Read-only view. Unlock the controls to run jobs, post now, or change schedules.

Actions

ReferStash Discord Bot controls

Timing

Service state.

The control panel above can run this job now or rewrite its timer.

Systemd

referstash-discord.service

Active state
active / running
Result
success
Exit status
0
Started
Mon Nov 16, 7:55 PM
Finished
Mon Nov 16, 7:55 PM
Uptime
2d 15h
Restarts
1

Logs

Latest output

File "/opt/referstash-bots/.venv/lib/python3.12/site-packages/httpx/_models.py", line 829, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://referstash.com/api/stats/global'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
2026-11-19 11:19:24,670 ERROR __main__: Could not fetch digest data
Traceback (most recent call last):
  File "/opt/referstash-bots/bots/discord_bot.py", line 297, in daily_digest
    top, stats, promo = await asyncio.gather(
                        ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/referstash-bots/bots/referstash.py", line 99, in stats
    return await self._get("/api/stats/global")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/referstash-bots/bots/referstash.py", line 80, in _get
    response.raise_for_status()
  File "/opt/referstash-bots/.venv/lib/python3.12/site-packages/httpx/_models.py", line 829, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://referstash.com/api/stats/global'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

Paths and runbook

Where it lives, how to run it.

Token values are never rendered. Copy paths and commands directly from here.

Paths

Files and services

Working Directory /opt/referstash-bots
Config /opt/referstash-bots/.env
Logs journalctl -u referstash-discord

Runbook

Commands

Restart
sudo systemctl restart referstash-discord.service
Logs
journalctl -u referstash-discord -f