discord-lettia

A Discord message context-menu bot that converts message text into selectable Unicode font styles.

Discord setup

Create a bot application with the Guilds, Guild Messages, and privileged Message Content intents. The bot needs View Channel, Read Message History, and Send Messages permissions in channels where Fontify is used.

Set the application credentials and start the bot:

cp default.env .env
npm ci
npm start

The global Fontify message command is refreshed at startup. In Discord, right-click a message, open Apps, select Fontify, and choose a font. Only the user who opened the menu can choose from it.

Use /fontify-all text:Hello world to post all 14 available styles together, with font names and copyable code blocks. The text option accepts up to 200 characters. Long results are automatically split into messages without truncation; mentions are disabled. Characters without a font mapping (including Japanese) stay unchanged. Both commands are registered globally at startup.

Develop

npm ci
npm run check
docker build -t discord-lettia .

Secrets are supplied at runtime and are not copied into the Docker image.

S
Description
No description provided
Readme
82 KiB
Languages
TypeScript 98.7%
Dockerfile 1.3%