> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mira.lgbt/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Full scripts you can copy and change to fit your server.

Every script here works as it is. Paste one in, then swap the colours, wording, and placeholders
for your own.

## Welcome message

An embed with the member's avatar, their join position, and a random greeting.

```text theme={null}
{embed}
{color: #5865F2}
{title: {random: Welcome,Hello,Glad you're here}!}
{description: Hey {member.mention}, you're our **{member.join_position|ordinal}** member.
Have a read of the rules and grab yourself some roles.}
{thumbnail: {member.display_avatar}}
{footer: {server.name} • {server.member_count|comma} members && {server.icon}}
{timestamp: now}
```

## Welcome message with a button

The same idea, cut down, with a button that explains roles.

```text theme={null}
{content: Welcome {member.mention}}
{embed}
{color: #5865F2}
{description: You're member **{server.member_count|comma}**. Nice.}
{thumbnail: {member.display_avatar}}
{button: label:Get roles style:primary message:Head to #roles and pick whatever you like.}
```

## Now playing, as an embed

```text theme={null}
{embed}
{color: dominant}
{author: {lastfm.name} && {member.display_avatar} && {lastfm.url}}
{title: {track.name}}
{url: {track.url}}
{description: [**{artist.name}**]({artist.url}) on [*{album.name}*]({album.url})}
{thumbnail: {album.cover}}
{field: Scrobbles && {track.plays|comma} && inline}
{field: Artist plays && {artist.plays|comma} && inline}
```

## Now playing, as a container

```text theme={null}
{box.color: dominant}
{box.text:**track**
-# [{track.name|lower}]({track.spotify_url})
**artist**
-# [{artist.name|lower}]({artist.url})}
{box.thumbnail: {track.image}}
```

## Member count milestone

Counts down to the next round number.

```text theme={null}
{content: {sub: 2000-{server.member_count}} more {plural: {sub: 2000-{server.member_count}}: member,members} until 2k!}
```

## Leave message

Short, plain, no embed.

```text theme={null}
{content: **{member.name}** left. We're down to {server.member_count|comma} members.}
```

## Boost thank you

```text theme={null}
{embed}
{color: #F47FFF}
{title: Thanks for the boost!}
{description: {member.mention} just boosted the server.
We're on level **{server.premium_tier}** with **{server.premium_subscription_count}** boosts.}
{thumbnail: {member.display_avatar}}
{timestamp: now}
```

## Role check

Shows a different message depending on whether someone has any roles.

```text theme={null}
{content: {if: {member.top_role} && Your top role is **{member.top_role}** && You don't have any roles yet, grab some in #roles}}
```

## Server info panel

A container with a header, a divider, and a link button.

```text theme={null}
{container: #5865F2}
{container.header: {server.name}}
{container.thumbnail: {server.icon}}
{container.description: **{server.member_count|comma}** members
Created <t:{server.created_at}:R>
Boost level **{server.premium_tier}**}
{container.separator: large}
{container.button: label:Invite link url:{server.vanity_url}}
```
