Skip to main content

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

/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:
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

A command in the builder

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

  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.
  • Ask for more detail: use a pop-up form instead of a text input. See Pop-up forms.