The bot's language and messages
Make the bot speak French or English, or rewrite any of its texts (replies, errors, help…).
On this page
The bot speaks French or English. And all of its texts live in a language file: you can download it, change the sentences you want, and send it back to the bot. It will then speak with your words.
Owners only
These commands are for the bot's owners. They apply to all of the bot's servers. The classic Crow Tools speaks French: a server gets it in English as described below.
In short
;set lang english: the bot speaks English;;get lang: the bot sends its language file;;lang customwith the edited file attached: the bot speaks with your words.
Changing the bot's language
;set lang english switches the bot to English, ;set lang français puts it back in French (en and fr work too). Everything changes at once: its replies, its panels, its help (;help) and its slash commands' descriptions.
A Community server whose primary language, chosen in its Discord settings, is French or English keeps its own: the bot answers there in that language, whatever the bot's language. What the bot sends its owners in DMs stays in the bot's language.
Slash commands also follow each member's Discord language: a member whose Discord is in English sees their descriptions and their options' names in English, a member whose Discord is in French sees their descriptions in French. For other members, the descriptions are in the bot's language, and the options' names in French.
Their answers follow it too: a member whose Discord is in French or English gets a slash command's reply, and the panel it opens, in their language; other members get them in the server's language, as for text commands. A panel keeps its language whoever uses it; only a refusal on someone else's panel, and what the bot shows a single member on a panel several members use, such as the confirmation of a vote, are in that member's language. What stays on the server (a poll, a counter's name, level-up messages, the reasons shown in the server's audit log) is in the server's language.
Changing a message, step by step
1. Download the file
Type ;get lang. The bot sends you the file of its current language; ;get lang english sends the English one, ;get lang français the French one. If you already have a custom file for that language, it sends that one too: that is the one to edit.
2. Find the sentence
Open the file in a text editor: Windows Notepad is enough, a code editor such as Visual Studio Code is more comfortable.
Search for the sentence with Ctrl + F, typing part of the current message. For the message of a server that isn't in the whitelist (in English), search for not in the whitelist. You find:
command_error:
not_whitelisted: 'This server is not in the whitelist, you can''t use the commands'
3. Change the sentence
Change the text between the quotes, for example:
not_whitelisted: 'This server doesn''t have access to the bot yet. To ask for it: discord.gg/your-server'
The rules to follow:
- Words in CAPITALS between braces are variables: in
Language changed to {LANG} successfully,{LANG}becomes the language's name. Keep them as they are; you can move them around in the sentence. - An apostrophe is written twice in a text between quotes:
'doesn''t'. Elsewhere (after|-, or in a line without quotes around it), write it normally:doesn't. - For a message over several lines, use
|-then one line per line of text, indented by two spaces:
not_whitelisted: |-
This server doesn't have access to the bot yet.
To ask for it: discord.gg/your-server
Your file only needs the sentences you change: the others stay those of its language.
4. Send the file back

Save the file as UTF-8, then send it to the bot as an attachment to the message ;lang custom (or reply to the message holding the file with ;lang custom). As a slash command, /lang custom has a file option to attach it (fichier for a member whose Discord isn't in English).
The bot checks the file before installing it: unknown key, a variable that doesn't exist, an empty or malformed text, a slash command description over 100 characters… If it finds a mistake, it tells you where, and nothing is changed.
;lang custom offgoes back to the original texts;;lang custom onbrings your texts back.
Each language has its own custom file. Without a language, ;lang custom acts on the bot's language's; for the other one, give the language before the rest: ;lang custom english with the file attached, ;lang custom english off. When you change the bot's language, the new language's file applies. For the slash commands' descriptions, each file applies to the members who see them in its language: the English file for a member whose Discord is in English, the French file for one whose Discord is in French, the bot's language's for everyone else; the options' names stay the original ones. As a slash command, the language option of /lang custom and /get lang chooses the language (langue for a member whose Discord isn't in English).
Finding the right message
Can't find the sentence? It probably contains a variable or some formatting. Switch the bot to developer mode with ;set lang dev: instead of its texts, it shows the name of each message.
Then do the action whose message you want to change. For example, a command typed on a server that isn't in the whitelist answers command_error.not_whitelisted: that is the not_whitelisted key, in the command_error part of the file.
Don't forget
Switch the bot back with ;set lang english when you are done: in developer mode, all your servers see the messages' names.
Special sentences
Some sentences change with a number or a word. They have a particular shape to respect.
Plurals
{COUNT, plural,
=0 {0 channels found}
=1 {1 channel found}
other {# channels found}
}
COUNT is the variable holding the number, and plural must not be changed. Each line gives the text for a number: =0 for 0, =1 for 1… other is required: it is used for every other number. In the text, # is replaced by the number.
Choices by word
{TEXT, select,
option1 {first option}
option2 {second option}
other {something else}
}
The same idea, with words instead of numbers: the text shown depends on the value of TEXT. other is required here too.
Several versions at random
Give a list instead of a sentence, and the bot picks one at random each time:
not_whitelisted:
- This server doesn't have access to the bot yet
- 'No whitelist here yet: ask for access on discord.gg/your-server'
A line that starts with a brace, or holds a colon followed by a space, must be wrapped in quotes, like the second one above.
If it doesn't work
- The bot refuses the file: read its message, it gives the line and the key at fault. Most often: an apostrophe not doubled in a text between quotes, or a renamed variable.
- Two apostrophes show in a row: the text isn't between quotes, write only one.
- The bot didn't react to the file: it must be attached to the same message as
;lang custom. - My change doesn't show: check that the custom texts are active with
;lang custom on.
Every command
Each command of this guide, with its arguments and who can use it: Bot control.