Add multi-guild Discord bot support with auto-setup

- Bot creates category and channels automatically when joining a server
- Channel structure: info, status, alerts, updates, diskussion, requests (forum)
- Add guild_settings database table for per-server configuration
- Add Discord bot invite button to Dashboard
- Add display settings API functions
- Add comprehensive Discord bot documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alexander Zielonka
2026-01-07 18:29:13 +01:00
parent ff3fa0752e
commit 4fcc111def
4 changed files with 770 additions and 0 deletions

View File

@@ -249,3 +249,27 @@ export async function getActivityLog(token, limit = 100) {
headers: { Authorization: `Bearer ${token}` },
})
}
// Display Settings
export async function getAllDisplaySettings(token) {
return fetchAPI('/servers/display-settings', {
headers: token ? { Authorization: `Bearer ${token}` } : {},
})
}
export async function getDisplaySettings(token, serverId) {
return fetchAPI(`/servers/${serverId}/display-settings`, {
headers: { Authorization: `Bearer ${token}` },
})
}
export async function saveDisplaySettings(token, serverId, address, hint) {
return fetchAPI(`/servers/${serverId}/display-settings`, {
method: 'PUT',
headers: { Authorization: `Bearer ${token}` },
body: JSON.stringify({ address, hint }),
})
}
// Alias for backwards compatibility
export const setDisplaySettings = saveDisplaySettings