What your bot does, step by step

A flow is the list of steps your bot runs once its trigger fires: send a message, give a role, check a condition, save a score. You arrange the steps in the editor, as a list or as a diagram.

scnx.app/guild/.../custom-commands
The flow editor with a Daily question flow: a schedule trigger and four steps, one of them opened to show its settings.
The Daily question flow in the diagram view, with the Send message step opened.

Screenshot from our test server. Your dashboard may look different.

One run of the Daily question flow

At 09:00 the schedule fires and Lantern works through five steps. Each step can use what the ones before it produced: the question picked in step two is the one posted in step three.

What happens

  1. 1.09:00: the schedule fires
  2. 2.Read the list of questions
  3. 3.Pick the next question
  4. 4.Post it in #general
  5. 5.Open a thread for answers
  6. 6.Count it as asked

In #general a moment later:

LanternAPP09:00
Question of the day
What is the one game you keep coming back to, no matter how old it gets?
Question 42 of 120
mira09:04
Terraria. I reinstall it every winter.

Illustration. The real interface may look different.

Daily question

ActiveSave

Trigger

Change

Schedule, every day at 09:00

#1

Get storage value

Read the question catalogue from{questions}

#2

Pick the next entry

The one after yesterday's

#3

Send message

Input parameters

Channel:#general

Message:Question of the day

#4

Create thread

Open a thread on that message

#5

Increase storage value

Count the question as asked in{asked}

Illustration. The real interface may look different.

Conditions, loops and pauses

A flow can check who clicked, go through every entry of a list, or stop until a moderator has decided.

If and otherwise

The flow checks something and takes one of two paths. Here tobi uses /staff, and only Crew members get the form.

  • For each entry

    The same steps run once per entry of a list.

  • Wait for a click

    The flow pauses until someone presses a button. It picks up from there even if the bot restarted in the meantime.

  • Call another flow

    Welcome, applications and the role menu all hand out the starter roles, so that part is one flow the others call.

Illustration. The real interface may look different.

Questions about flows

Several hundred for Discord itself: messages, roles, members, threads, buttons, forms and stored data. On top of that come tools for text, numbers, dates and lists.

Switch it on for your server

The beta is open to every server with an SCNX bot. The owner or a co-owner switches it on, and the bot restarts once.

Your V2 custom commands keep running next to it.