**Language / Langue :** [[fr:txt:sons-images|FR]] | **EN**
====== Sounds and images (.txt format) ======
===== Sounds =====
The bot joins the **JDR-Bot** voice channel automatically, when it exists, at the start of every game, and leaves it when the game ends or is given up.
To play a sound, surround its URL with ''<<'' and ''>>'':
The dragon roars! <> You take 10 damage.
Supported formats: ''.mp3'', ''.ogg'', ''.wav''
Without an audio extension, the content is read aloud without being displayed:
<>
Discord uses native TTS messages, which remain visible; Web, Desktop and standalone exports use the device's speech synthesis without displaying the content. The Terminal has no speech synthesis and ignores it. To display the text too, write it normally in addition to the tag.
* One sound at a time: if a sound is playing, it is stopped before the next one starts.
* A sound plays **once**, not in a loop. It plays again if the player comes back to the room.
===== Images =====
To display an image, surround its URL with ''%%[[%%'' and ''%%]]%%'':
You uncover an old map.
[[https://example.com/images/map.png]]
What will you do with it?
The URL must start with ''http'' or ''https''. Supported formats: ''.png'', ''.jpg'', ''.gif'', ''.webp''
The image is displayed between the two blocks of text.
===== Available sounds =====
Royalty-free sounds are hosted on the official server:
[[https://cyril-fiesta.fr/jdr-bot/scenarios/sounds/]]