Repository navigation
TgRelay 1.12.6 — badges and player heads
Server, tag and author are badges now — and the author is their own skin head.
Badge plates
A word is drawn as a picture and cut into 100×100 tiles, one Telegram custom emoji per tile; the
tiles sit in a row and read as one plate. {losos}, {build}, {mute}, {relay} are configured in
telegram.badges, so the same plugin works for any server name.
LOSOS RELAY Сервер запущен
LOSOS MUTE Игрок: кто продаёт алмазы?
Player heads
The plugin downloads the skin head once, adds it to its own custom emoji pack and keeps the id in
avatars.txt. After the first join a player is shown as they look in game instead of a Telegram
handle. Pack ownership stays with a user account (bots cannot own custom emoji packs), and the bot
may use custom emoji when its owner has Telegram Premium — everyone can see them.
Fixed along the way
- the badge and avatar maps were built before the API client existed, so both were empty at send
time and{losos}/%avatar%reached the chat as plain text; - spaces around a plate are guaranteed by the sender now, so the text never sticks to the picture;
- server notices no longer print
%server_emoji%literally; - the restart loop of the second server hung on
timeoutin a detached console — now it waits on
ping, so the server actually comes back.
Full Changelog: v1.9.0...v1.12.6