Commands: Export and import settings and custom commands
+export puts in a file a custom command, alone or with the commands it calls, a server's settings, with its structure if you want, or the whole bot with its servers, to receive or to save on the bot; +import imports them on this server or another, letting you choose for each role, channel and emoji, and a bot file server by server.
+export puts in a file a custom command, alone or with the commands it calls, a server's settings, with its structure if you want, or the whole bot with its servers, to receive or to save on the bot; +import imports them on this server or another, letting you choose for each role, channel and emoji, and a bot file server by server. A backup is such a file: +backup.
The step-by-step guide
Export and import custom commands walks you through it.
+export
+export: Exports a custom command, a server's settings or the whole bot to a file
The bot opens the export panel, which goes step by step: first what you export (the whole bot, a server or a custom command), then which one, then what the file holds. Back returns to the step before without losing your choices, and a step with only one possible answer is skipped.
A custom command (with the custom permission too): pick it in the menu, or with Search, then export it alone or with the commands its buttons and menus call, and the ones those call in turn (50 at most); the panel shows which button or menu choice calls each. A command that calls none is exported as soon as it is picked.
A server: its settings in one file, each one only if you have the permission of the command that sets it (prefix for the prefix, join settings for the welcome…); a line says when some are left out, and the choice only shows if you can export something of it. Each thing it can carry besides has its line and its “In the file” button: the custom commands (the custom permission), the images of the server's emojis, the member lists (whitelist, blacklist, permissions given to members; the wl permission), the history: the members' sanctions, notes and strikes (the sanctions and clear all sanctions permissions, level 3 by default), and with the backup permission (level 10) the server's structure: its roles, its channels, who holds which role (only with the roles), its Discord settings and all its emojis with their images. Everything is in the file by default but all the emojis, whose size the panel shows (the emoji images are then already in it); +backup opens this step directly and puts them in too. Keep a file holding the history like a password. Temporary sanctions in progress, open tickets and modmails, and locked nicknames are never in it. A setting that uses a role or channel deleted since is empty in it, as the bot already treats it.
The file is sent to you alone, under the panel, with a button to get it in your DMs too and one to save it on the bot under a name you choose: +import without a file lists the saved files. The bot keeps 25 saved files in all; past that, it asks which one to delete. A file too big for Discord to send here comes as a download link, valid 24 hours, with the same button to save it. It holds all the settings, their roles, channels and emojis, and the members of the lists it carries: keep it to yourself.
A member of level 10 or more picks the server among those the bot is in; anyone else exports from this server.
The whole bot in one file, if you can change one of its own settings at least (level 10 by default): its settings (status, colour, language and its custom file, main prefix, command permissions and names, modmail, the bot's blacklist with the member lists), each one only if you have the permission of the command that sets it, and those of each of its servers, with what you could export from it and their structure. Its lines are a server's, without the images of the emojis the settings use by default: with them, the panel shows the size they add. If it takes a while to make, it reaches you in a direct message. In a direct message to the bot, the command opens this step directly.
+import
+import: Imports a file, attached or saved on the bot: you check what it changes first
The bot opens the file attached to the command, or to the message it replies to, and shows what it holds before changing anything. Without a file, it lists the files saved on the bot that you could import, from any server: choose one to import it, or to delete it for everyone if you could import all of it. For a file too big to attach, +import without a file offers “Send a large file”: a link valid one hour; the import opens here once the file arrives, then offers to save it on the bot.
Each role, channel, emoji or sticker of the commands is listed once, with its uses: keep it when it exists here, match it with an item of this server, create it, or remove it. By default, the bot takes the server's own item of the same name, else creates it, else removes it. A keyword already taken is renamed by default, or replaces the server's command, or is not imported; one button decides for all. The member lists only come if you add them.
A file of a server's settings imports onto this server or another, with this bot or another, step by step: the structure, the settings on three pages, then the custom commands, added, replacing all the server's or not imported, and which ones. On the server and the bot it comes from, the file's commands go back in their place. Each role, category, channel, emoji, sticker, panel or command the server lacks is listed: matched with one of this server's, created, posted again or kept as a draft for a ticket panel, or removed; on its own server, it can also be kept as written. By default, as for a command's file.
If the file holds the server's structure, choose what it rebuilds (the backup permission): roles, channels, members' roles (with the roles, and if you have access to the whitelist), Discord settings, emojis. On the server the file comes from, everything is chosen and what the file doesn't have is deleted; elsewhere, nothing is chosen or deleted by default. The confirmation says what will be created, changed and deleted: the messages of a deleted channel are lost. The settings then go onto what the structure rebuilt. The emojis the settings use are added first, the others afterwards, at Discord's pace. A file holding only the structure imports no settings.
What only holds where the file comes from is not imported, nor what you couldn't change yourself (a setting with its command, a custom command with custom): the confirmation says so.
If the file holds the server's history (sanctions, notes, strikes), it imports onto any server, with the clear all sanctions permission (level 3 by default), and only if you add it: it is added to the server's without counting anything twice, and what was given since the export is kept.
A bot file also imports in direct messages: choose which settings shared by every server to import, then the servers of the file that the bot and you are in; each is then imported like a server's file, with its own confirmation, or can be skipped.
Before writing, the bot sends you an undo file: imported on this server, it puts everything back as it was, the history and the structure included if they were imported, and deletes the panels posted again and the emojis added by the import. If it is too big to be sent to you here, it comes as a link, valid 24 hours. The file only opens on a Crow Bots bot.
The levels and names shown are the original ones: your server may have changed them (permissions, +alias). Every Gestion V2 command