Skip to content

simonLeary42/daad

Repository files navigation

daad: Discord ANSI adapter

Converts ANSI color escape sequences from stdin into the limited 4-bit sequences supported by discord. Selects the Discord color with the lowest Euclidian distance to the target color.

Demo

git diff --color=always

image

git diff --color=always | discord-ansi-adapter | discord-message

image

Usage

some command here | discord-ansi-adapter
To use the primitive message sending helper script:
# setup a discord bot
export DISCORD_BOT_TOKEN='...'
export DISCORD_CHANNEL_ID='...'
some command here | discord-message

Installation

using uv:

uv tool install git+https://github.com/simonLeary42/daad

using pip:

pip install git+https://github.com/simonLeary42/daad

About

discord ANSI adapter

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages