Skip to content

The ZyperOS Discord in code: server setup and Zyper's slash commands - #55

Merged
tarikbc merged 3 commits into
mainfrom
discord-bot
Nov 10, 2026
Merged

tarikbc merged 3 commits into
mainfrom
discord-bot

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Everything behind the ZyperOS Discord, in discord/, so it is changed in code and run again rather than clicked together.

  • setup.py: the server, safe to run again.
  • worker/: Zyper, a Cloudflare Worker that answers slash commands. It is already deployed at zyper-bot.tarikcaramanico.workers.dev, and Discord uses it.
  • register.py: the commands and the endpoint.

Zyper answers /install, /bios, /wifi, /transfer, /portmaster, /update, /controls, /links and /version. /bug opens a short form that posts the report in the bug-reports forum, tagged, with a link to file it on GitHub too. Every Monday it opens a "What are you playing?" thread.

The bot token is never in the repository: the scripts read it from ~/.config/zyperos, and the Worker has it as a secret.

… as a Cloudflare Worker

discord/setup.py builds the server (Community mode, roles, channels and
forums, welcome and rules, onboarding, AutoMod, the bot's profile, the
invite) and is safe to run again. discord/worker is Zyper: Discord sends
each slash command to it signed (Ed25519), and it answers /install, /bios,
/wifi, /transfer, /portmaster, /update, /controls, /links and /version, takes
/bug reports through a form into the bug-reports forum with a GitHub issue
link, and opens a "What are you playing?" thread every Monday.
discord/register.py registers the commands and the endpoint. The bot token
stays in ~/.config/zyperos and the Worker's secrets.
…d for invites and limited per member; README: a downloads badge

Onboarding hands out every role, so exempting Developer from the invite
filter let anyone post invites. Zyper posts /bug reports itself, so AutoMod
never sees them: the Worker refuses invite links in them and takes one
report per member every two minutes. Pull requests and issues no longer post
into Discord, only releases.
@tarikbc
tarikbc merged commit f632518 into main Nov 10, 2026
1 check passed
@tarikbc
tarikbc deleted the discord-bot branch November 10, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant