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

# Greet

> Setup a greeting message for when new members join your server.

<Note>Haunt's prefix is set to `;` by default.</Note>
<Info>Use `;prefix set [character]` to change the prefix for your server.</Info>

## Set a Channel

<Info>**Embeds** are supported for creating **greet messages**, refer to [**resources**](/resources/embeds/scripting) or [https://haunt.site/embed](https://haunt.site/embed)</Info>

Start by providing a channel for the greet messages to go.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet set (channel) [message]
  ```

  ```javascript Example theme={null}
  ;greet set #joins
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/set.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=dad1edecb1e2f161fe1ca96f7e149786" width="543" height="183" data-path="images/configuration/automation/greet/set.png" />
</Frame>

## Disable Greetings

Disable **greet messages** by using the `greet disable` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet disable
  ```

  ```javascript Example theme={null}
  ;greet disable
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/disable.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=affe725e0c8684e41700834f2296aff3" width="493" height="164" data-path="images/configuration/automation/greet/disable.png" />
</Frame>

## Create a Custom Message

<Info>**Embeds** are supported for creating **greet messages**, refer to [**resources**](/resources/embeds/scripting) or [https://haunt.site/embed](https://haunt.site/embed)</Info>

Create a **custom message** with the `greet message` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet message (embed | message)
  ```

  ```javascript Example theme={null}
  ;greet message Welcome to {guild.name}, {user}!
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/message.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=10c8b20d44188580919879ff90e7419f" width="1219" height="214" data-path="images/configuration/automation/greet/message.png" />
</Frame>

## View your Custom Message

View your **custom message** with the `greet message view` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet message view
  ```

  ```javascript Example theme={null}
  ;greet message view
  ```
</CodeGroup>

You can view the code of your message with the **View Embed** button.

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/view.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=b2725076372837439c3516a393a7df96" width="1149" height="548" data-path="images/configuration/automation/greet/view.png" />
</Frame>

## Clear your Custom Message

Clear your **custom message** with the `greet message clear` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet message clear
  ```

  ```javascript Example theme={null}
  ;greet message clear
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/clear.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=85da4004ba7cc00cc87b6e93fb8962df" width="554" height="176" data-path="images/configuration/automation/greet/clear.png" />
</Frame>

## Delete the Greet Message when a member leaves

<p>
  Haunt will delete the **greet message** if a member leaves the server at a certain duration.<br />
  Start by using the `greet left enable` command to enable this feature!
</p>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet left enable
  ```

  ```javascript Example theme={null}
  ;greet left enable
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/left-enable.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=f7c654d9cb4d909a16f68e7cca2a00a6" width="530" height="161" data-path="images/configuration/automation/greet/left-enable.png" />
</Frame>

After this, you can set your own custom duration.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;greet left duration (time)
  ```

  ```javascript Example theme={null}
  ;greet left duration 1 hour
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/H1I_SfHmGDwId19B/images/configuration/automation/greet/left-duration.png?fit=max&auto=format&n=H1I_SfHmGDwId19B&q=85&s=b205f477a0a0ce87c2a16a978766b785" width="626" height="179" data-path="images/configuration/automation/greet/left-duration.png" />
</Frame>
