Make a picture
Fill in one of your picture designs, ready to send.
data.picture draws one of the bot's picture designs with this run's values, such as a profile card, a leaderboard or a poll's results, and keeps it as {temp.picture}. Give that to a message's Attach files or an embed's Image to send it, or to Save a file to keep it.
Settings
| Setting | What it does |
|---|---|
| Picture | Which picture design to draw. Its tokens, lists and conditions are filled in with this run's values. |
| Save as | The name of the token it's kept in. picture gives {temp.picture}. |
Ways out
out. Turn on If it fails for a red way out.
Produces
| Token | Value |
|---|---|
{temp.picture} | The picture, for Attach files, an embed's Image or Save a file. |
Picture designs
A picture design is made under Design → Pictures. It's a canvas up to 2000 pixels on each side, with a background colour or none, and layers drawn in order, the first at the bottom:
- Text, which wraps inside its box and can shrink until it fits.
- Shapes: rectangles, circles and lines, filled with a colour or a gradient.
- Images, by their address or a token such as
{user.avatar}. - Bars, filled as far as a value goes out of a maximum, for progress and levels.
- Charts: bar, line, area, pie and donut.
- Lists, which repeat their own layers once per item of a list or per row of a collection, for leaderboards and grids.
Any layer can have a condition, so it's drawn only when its condition holds, such as a crown on the first row of a leaderboard. Sample values let the editor preview tokens; the bot never reads them.
Notes
- The picture is drawn when the step that sends or saves it runs, so a step between them can still change the values it shows.
- A list of a collection's rows reads each row's columns as
{item.column}, and{item.index}is its place, starting at 1.
Example
A /rank command looks up the member's points with Find rows, then makes a picture from a "Rank card" design that shows {user.avatar}, {user.name} and a bar filled to {row.points} out of 1000. A Reply attaches {temp.picture}.
Related
Was this page helpful?