Skip to content

A discord bot that roll dice in thread, to keep your roleplay clean and fun!

License

Notifications You must be signed in to change notification settings

Dicelette/discord-dicelette

Repository files navigation

Dicelette

Invite the bot

Documentation

Translation

The bot is fully translated into French and English.

Slash-commands will be automatically translated into the language of the client used.

Tip

For example, a user with a client in Korean will get a reply in Korean, while an English user will get a English reply.

But, if you use the on message type of roll detection, the reply will be in the guild's language, which will only can be set for community guild. By default, the reply will be in English.

Add a translation

To create your own translation, you need to copy and translate the en.ts file.

Important

The name must follow the Discord.js Locale For example, ChineseCN for Chinese (China) or ChineseTW for Chinese (Taiwan).

You need, after that, to update the index.ts file to add your translation :

import newTranslation from "./locales/{translation}";

export const TRANSLATIONS = {
	//keep the other translations
	newTranslation,
}