Repository navigation
The ZyperOS Discord in code: server setup and Zyper's slash commands - #55
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,/linksand/version./bugopens 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.