docs/EXPORT.md

Server export format

This guide is for server owners who move a server's NeonFlux data to another bot and for developers who write an importer. The server export is a readable JSON copy of a server's NeonFlux settings, leveling profiles, member showcases and profiles, moderation cases with their corrections and appeals. It is separate from the encrypted backup, which only restores into NeonFlux. NeonFlux does not import data from other bots

Get an export

Only the current server owner can export, because the file holds private moderation data

  • On the dashboard, open Server export under Insights and choose Export server data. NeonFlux checks with Fluxer that the signed-in member owns the server, the same live check private cases use, then reads the export and offers the file to save
  • In chat, send !export to NeonFlux in a one-to-one DM, with --server <serverId> in multi-server mode. NeonFlux checks that the member owns the server and sends the file in the DM, as the bot guide describes

The server's audit log records each export with who started it and from where, never its content

File

The file is UTF-8 JSON printed with two spaces of indentation. Its name is neonflux-server-export-<serverId>.json. Times are Unix milliseconds in UTC, and user, role and channel IDs are decimal strings

FieldValue
formatAlways neonflux-server-export
versionThe format version, 2 for this format. A new version changes this guide first. Version 1 kept a case's corrections inside the case as cases[].corrections, where version 2 lists them in corrections
serverIdThe server the data belongs to
exportedAtWhen the export started
partThe part number, starting at 1
lastParttrue on the last part
settingsEach feature's settings by family name, see settings
levelsLeveling profiles, see levels
showcasesMember showcases, oldest first, see showcases
profilesMember profiles, see profiles
casesModeration cases, oldest first, see cases
correctionsReason corrections and voids of cases, oldest first, see corrections
appealsAppeals, oldest first, see appeals

An export from the dashboard is always one file. A chat export larger than about 4 MiB arrives as several files named neonflux-server-export-<serverId>-part-<n>.json, each sent as its own DM message. Every part is a complete file of the same shape with its own share of the data. To load a split export, read every part from 1 to the one with lastPart: true, concatenate the levels, showcases, profiles, cases, corrections and appeals arrays and merge settings, where a family that appears in more than one part continues its lists

Settings

settings holds one object per family, with the settings as the dashboard shows them. Field names and values follow the shared contracts, and each family's section in the bot guide explains what a setting does

FamilyContents
generalprefix, replyStyle (embed or text) and the bot's nickname, or null when it has none
analyticsenabled, whether NeonFlux counts server activity
rolessettings for reaction roles, rules verification and autorole, and panels with their role mappings
logsChannel log enabled, category routes, per-event eventRoutes, allChannels, webhookPosts, messageChannelIds and excludedChannelIds
responsessettings and the custom command and autoresponder definitions
moderationsettings, the privateDataRoleId, automod rules and the security watchlist with its reasons
publishingsettings and saved drafts and templates with their message content
greetings, suggestionssettings
levelingsettings, which hold onlyChannelIds when only those channels earn XP
ticketssettings and categories with their questions and canned replies
milestonessettings and the birthday and anniversary routes
cleanupsettings and the per-channel policies
events, schedulessettings and the events or schedules with their dates
voiceTemporary voice generators
commandrulesrules, each with its command, channels and roles
rolepickersettings with its menus and the access lists
temprolessettings with each role's default and longest duration
stickystickies with their channel, text and interval
sidebarThe dashboard link channel, or null
alertsSecurity alert settings
helpdesksettings and saved answers
onboardingNewcomer checklist settings
lfgLooking for group settings
showcase, profilesettings and the access lists
youtubeFollowed YouTube channel subscriptions, each with its YouTube channel ID, alert channel, whether alerts are on, the problem that turned them off and when it was added
lockdownThe lockdown settings, with the exempt channels
antinukeAnti-nuke settings, with the mode, limits, response and trusted accounts
jailJail settings, with whether it is on, the role and the channel. Jailed members are moderation records, not settings
rightsBot-only staff rights settings, with whether they are on, which roles hold which rights and each right's limit. Backups leave these out
twitchFollowed Twitch broadcaster subscriptions, each with its Twitch broadcaster ID, alert channel, whether alerts are on, the problem that turned them off and when it was added
feedsFollowed Bluesky and X account subscriptions, each with its service, account ID, post channel, whether posts are on, the problem that turned them off and when it was added
countersCounter channels enabled and counters, each with its channel, kind, counted role, name template, whether it is on, the problem that turned it off and when it was added
boardsBoards enabled and boards, each with its name, emoji, channel, threshold, whether an author's reaction and messages of bots count, ignored channels, the problem that stopped it and when it was created
remindersPersonal reminders settings: Whether they are on and the limit per member. A member's reminders are never exported here
giveawaysGiveaway settings: Whether they are on and the required role. Giveaways themselves are live state

Live state, such as active temporary role grants, open voice rooms and groups, the invite list, a running lockdown, anti-nuke incidents, checklist completion counts and each YouTube or Twitch channel's subscription status and latest activity, is not part of the settings

Levels

Each entry is a member with current-season XP. Members without XP, including those whose XP belongs to an earlier season, are left out

FieldValue
userIdThe member
xpCurrent-season XP
levelThe level that XP reaches. Level N needs 100 * N² XP, up to level 1000

Showcases

Each entry is a showcase that still exists, with the text as the member wrote it, including any mention syntax. The posted message neutralizes mentions, the export does not

FieldValue
showcaseNoThe showcase number in this server
authorIdThe member who posted it
titleThe title, up to 100 characters
textThe text, up to 1,000 characters
linksUp to 3 web addresses in their normalized form
channelIdThe channel NeonFlux posted it in
messageIdNeonFlux's message, present once Fluxer confirmed it
createdAtWhen the member posted it
updatedAtWhen the member last changed it

Profiles

FieldValue
userIdThe member
bioThe bio as the member wrote it, up to 300 characters, possibly empty
linksUp to 3 web addresses in their normalized form
colorThe accent color as an RGB number, or null for the default
updatedAtWhen the member last saved it

Cases

FieldValue
caseNoThe case number in this server
actionThe action, such as warn, timeout, kick, ban or log
originWhat created the case: manual, automod, security, or penalty for the warning limit
incidentPresent for security cases: join-burst, honeypot or watchlist
actorIdThe staff member who acted, when one did
targetIdThe member the case concerns, when there is one
channelIdThe channel involved, when there is one
ruleNameThe automod rule that matched, for automod cases
linkedCaseNoThe earlier case this one reverses or follows
reasonThe reason, an empty string when staff gave none, or null when the owner erased the case
outcomepending, succeeded, failed or uncertain when NeonFlux could not confirm the action
voidedWhether staff voided the warning
erasedWhether the owner erased the case's text
createdAtWhen the case was created

Corrections

Each time staff change a case's reason or void a warning, the case keeps a correction. A case may have any number. Erasing a case deletes its corrections

FieldValue
caseNoThe corrected case
typereason for a changed reason or void for a voided warning
actorIdThe staff member who made the correction
previousReasonThe reason before the correction
reasonThe reason after it, the same as before for a void
createdAtWhen staff made the correction

Appeals

FieldValue
appealNoThe appeal number in this server
caseNoThe appealed case
userIdThe member who appealed
statusopen, accepted, rejected or withdrawn
textThe appeal, or null when the owner erased its case
decisionReasonPresent once staff decided, or null when erased
decidedByThe staff member who decided
decidedAtWhen staff decided
erasedWhether the owner erased the appeal's case
createdAtWhen the member appealed

What the export leaves out

The export holds no credentials, sessions, receipts, leases, delivery attempts or other bookkeeping. It also leaves out other data the server owner does not author or that belongs to members, such as AFK statuses, birthdays, RSVPs, votes, suggestions, tickets, analytics counts, metadata log records and the audit log itself. Showcases and profiles are included because members publish them in the server. Members export their own data with !mydata

Fluxer's own channels are not NeonFlux data, so the export lists none of them, including forum and media channels with their tags and post settings. The encrypted backup's structure category keeps those for a restore into NeonFlux, as the bot guide describes