Repository navigation
Conversation
A layout file defines the roles, categories and channels of the Discord server of a game server. Administrators run /openmu setup to create what's missing; existing items are adopted by name, so it can run repeatedly. The bot posts notifications and the status into the channels of the layout, found by name, unless channel ids are configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01USFZ9xErMB1EwkpfdUHzoZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01USFZ9xErMB1EwkpfdUHzoZ
Deploying openmudocs with
|
| Latest commit: |
9e65eab
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eaa50c7f.openmudocs.pages.dev |
| Branch Preview URL: | https://claude-sweet-cray-w8crms-m3.openmudocs.pages.dev |
This branch has not been deployed
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.
Milestone M3 of the Discord integration (#1101). Stacked on #1156 (M2), so review/merge that first.
What
src/Discord/Provisioning/DefaultLayout.json, embedded): roles GM and Linked Player; categories Info (#announcements,#events,#server-status), Community (#world-news,#world-chat,#general) and Staff (#staff-alerts,#gm-commands, only visible to GM). Each item has a stable key. Channels can be read-only, announcement channels, receive notification categories or show the status. A custom layout can be configured withDiscord__Bot__LayoutFile; it's validated on load (unique keys, known roles)./openmu setup: a slash command with Administrator as its default member permission, usable in guilds only. The handler re-checks that the user is an admin. Behaviour:@everyone, the roles and the bot; other overwrites stay as they are.Bot__Channels__*/Bot__StatusChannelIdtake precedence. Until the bot is connected, categories without an explicit channel fall back to their webhook.IDiscordServerabstraction;SocketGuildServeradapts Discord.Net's guild to it.Tests
New: provisioning of an empty server, idempotency, adoption by name across categories, failure reporting with continuation, permission overwrites, finding channels, layout validation, routing precedence, setup report, and webhook fallback in the notifier. Full suite: 1690 passed.
Not tested against a real Discord server/bot token.
🤖 Generated with Claude Code
https://claude.ai/code/session_01USFZ9xErMB1EwkpfdUHzoZ
Generated by Claude Code