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

# Suggestions

> Members post numbered ideas to a suggestions channel.

> **What you'll build**
>
> * `/suggest idea`: a member types an idea.
> * The bot posts it in your **suggestions** channel with a number, like **Suggestion #12**.
> * The member gets a private thank you.
> * The bot counts how many ideas each member has given.

## Before you start

Make a channel called `suggestions`. Make sure your bot can see it and write in it.

## The variables to make

| Name | Type | Where it's kept | Starting value | What it's for |
| - | - | - | - | - |
| `suggestion-count` | **Number** | Server Specific | `0` | Gives every suggestion a number |
| `my-suggestions` | **User**, each member stores a **Number** | Server Specific | `0` | How many ideas each member has given |

## /suggest

**1. Make the command and input**

A **Slash command** called `suggest`, description `Share an idea for the server`. Add a **Text** input called `idea`. Make it required.

It gives you `{option_idea}`.

**2. Count it**

1. **Do the maths** on `suggestion-count`: `var + 1`.
2. **Do the maths** on `my-suggestions`, Whose variable **The member who started this**: `var + 1`.

**3. Post it**

Add a block that sends a message **to a channel** (search `channel`). Pick your `suggestions` channel and write:

```text theme={null}
Suggestion #{DBVAR_suggestion-count} from {user}
{option_idea}
```

**4. Thank them**

**Reply** privately: `Thanks! Your idea is suggestion #{DBVAR_suggestion-count}. You have shared {DBVAR_my-suggestions} ideas.`

**5. Save**

Press **Save**.

![A slash command with blocks in the builder](https://mintcdn.com/doge-bot/0C6-zgXTpDx1QOCe/images/guide/builder-command.png?fit=max\&auto=format\&n=0C6-zgXTpDx1QOCe\&q=85\&s=b7568b03c11d216dd65caf823f2b7d7a)

> [!TIP]
>
> If the post can fail (for example the bot can't write in the channel), press the **+** on the red path of the message block and add a **Reply**: `I couldn't post that: {error_reason}`.

## Try it

> [!TIP]
>
> 1. Type `/suggest` and write an idea.
> 2. The `suggestions` channel shows **Suggestion #1** with your idea.
> 3. You get a private thank you.
> 4. Suggest again. It says **#2**.

## Make it yours

* Show the top idea-givers: use `{DBVAR_my-suggestions.leaderboard.10}`. See [A leaderboard](/build-real-systems/a-leaderboard).
* Ask for more detail: use a **pop-up form** instead of a text input. See [Pop-up forms](/building-with-blocks/pop-up-forms).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.