<word1> is a blank that fills in with what the person types
Use it when one command should work for anyone or anything, so you do not need a new command for each name. Whatever the person types after the command goes where the blank is.
If your command is called hi and its text is Hi <word1>, welcome!
| They type | Reina Bot says |
!hi Sam | Hi Sam, welcome! |
!hi Leo | Hi Leo, welcome! |
<word1> is the first word they type, <word2> the second, up to <word9>.
<words> is everything they type, for a whole sentence.
- Older commands that use
%1% and %*% still work.
- If your command always says the same thing, like your socials or your schedule, leave the blanks out.
- The examples use
!. Your server uses the prefix its moderators picked.
The name and the category
Type only the name here. Your server's prefix goes in front when people use it: where the prefix is !, they type !score. A moderator picks the prefix with /custom settings.
Every command starts with ! automatically, so type only the name here. Viewers type !lurk.
Groups it on your dashboard. Use any name you like. Only Put it live sends the category: a command pasted in chat or sent as a file lands in Uncategorized.
What the buttons add
Every insert button, explained
<word1>- A blank that fills in with the 1st word the person types. With
Hi <word1>!, typing !hi Sam gives Hi Sam! <word2> is the 2nd word, and so on up to <word9>.
<words>- All the typed words after the command.
<u.gold>- Reads a variable: here, your gold.
{<u.gold> * 2}- Does math (or rolls dice, like
{1d20 + 5}) and shows only the answer: here, your gold doubled.
!var u gold +5- An action line that changes a variable: adds 5 to your gold.
-5 takes away, a plain number replaces the value.
!if / !else- Says the first line only when the test is true (your gold is under 10), and the
!else line when it is not.
{bar(<u.xp>, 100, 10)}- Draws a bar 10 blocks wide: your xp out of 100.
[[1d20]]- Rolls dice and shows each die, not just the total.
{roll <word1>}- Rolls the 1st typed word as dice, like 1d6. Used twice, it is the same roll.
!r 1d20- An action line that rolls dice and shows the roll, like typing
!r 1d20 in Discord (with your server's prefix).
- My snippets
- Your own pieces, saved under Snippets. Each inserts its text the same way; one that starts with
! goes on its own line.
Embed parts
Each one goes in the block at the top: embed on the first line, the others right under it. A button puts its line there for you, adding embed first when it is missing, and swaps a line that is already there. Each part is filled in like the rest, so <word1> and <u.gold> work. Links must start with https://; links from members who are new to the server are left out, and so is that part.
- Embed:
embed Title - Makes the reply an embed, like Reina Bot's own replies. Change Title to its title (it may hold
<word1> or <u.char.name>), or delete Title for an embed with no title. The text lines become its text, where ### makes a subtitle and ** bold.
- Color:
color gold - Colors its edge: red, orange, yellow, gold, green, teal, blue, purple, gray, white, black, or a code like
#ff8800. Without it, the server's color.
- Title link:
url https://example.com - Makes the title a link to that page.
- Description:
description Text - Text at the very start of the embed, before the text lines.
- Thumbnail:
thumbnail https://... - A small picture in its top corner, from a link to a picture.
- Image:
image https://... - A big picture under the text, from a link to a picture.
- Author:
author Name - Small text above the title.
- Footer:
footer Text
- Field:
field Name | value - A name over a value, under the text. Up to 25;
field inline Name | value sits side by side with the next one.
- Timestamp:
timestamp - Shows the time the reply was sent, in each reader's own time.
- Chart:
chart bar and data Sam: 12 - Draws a chart as the embed's picture: one
data line per item (up to 40), a name, a colon, then a number, like data Sam: <s.score.sam>. Optional: colors rose, blue, axis Points | Member, palette pastel. Change bar to column, line, pie or another type from the Commands page.
<t.user>- The name of the person who typed the command.
<t.touser>- The 1st typed word without its @, or the person who typed the command when nothing was typed.
<t.channel>- Your channel's name.
<t.game>- Your stream's category.
<t.title>- Your stream's title.
<t.uptime>- How long you have been live, like 2 hours 5 minutes, or "not live".
<t.viewers>- How many people are watching: 0 while you are offline.
<t.count>- How many times this command has run.
<word1>- A blank that fills in with the 1st word the person types. With
Hi <word1>!, typing !hi Sam gives Hi Sam! <word2> is the 2nd word, and so on up to <word9>.
<words>- All the typed words after the command.
<s.deaths>- Reads a value the channel saved: here, deaths. A value never saved is empty.
!var s deaths +1- An action line that changes a saved value: adds 1 to deaths. A value never saved starts at 0.
-1 takes away, a plain number replaces the value.
!if / !else- Says the first line only when the test is true (nothing was typed), and the
!else line when it is not.
{1d20}- Does math or rolls dice and shows only the answer, like
{<s.deaths> * 2}.
[[2d6]]- Rolls dice and shows each die, not just the total.
- My snippets
- Your own pieces, saved under Snippets. Each inserts its text the same way; one that starts with
! goes on its own line.
Words from Nightbot
If you used Nightbot, StreamElements or Fossabot, $(user), $(touser), $(query), $(1) to $(9), $(count), $(channel), $(game), $(title) and $(uptime) work too, and so do $(arguments), $(status) and StreamElements' form of the same words, like ${user} and ${1}. !addcom, !editcom and !delcom work in chat.
To bring many commands over at once, press Import from Nightbot or StreamElements under My commands.
What the symbols mean
The < { [ ! and \ marks, and whose value is whose
<word1> to <word9>- Blanks that fill in with the words the person types after the command, in order. With
Hi <word1>!, typing !hi Sam gives Hi Sam!
<words>- A blank that fills in with everything the person types after the command.
< >- Reads a variable:
<u.gold> is your gold. - Reads a word or a value:
<t.user> is who typed it, <s.deaths> is what the channel saved.
{ }- Does math or rolls dice, and shows only the answer.
[[ ]]- Rolls dice and shows each die.
( )- Groups math inside
{ }: {(<u.gold> + 2) * 2} adds first, then doubles. - Groups math inside
{ }: {(<s.deaths> + 2) * 2} adds first, then doubles.
!- Starts an action line, which is done and not said, like
!var or !r. A line without it is a text line: the command says it.
\- Put it before
< { % or ! to print that symbol as itself: \<word1> prints <word1>.
Whose variable it is
The letter before the dot in <u.hp> or after !var:
u- Yours, the same in every server.
m- Yours in this server (only this server's commands and moderators set it).
s- The server's (moderators set it, everyone reads it).
f- This channel's fight (anyone who posts here sets it).
Variable names use small letters, digits, _ and dots, like char.name. In Discord, /custom guide has everything on one page and /custom learn explains it one step at a time.
Whose value it is
The letter before the dot in <s.deaths> or after !var:
s- The channel's: everyone reads the same one.
m- The person's who typed the command, in your channel.
t- Twitch facts, like
<t.game>. They can be read and never changed.
Value names use small letters, digits, _ and dots, like boss.hp. A command changes a value with a !var line; typing !var in chat by hand does nothing yet.
Limits
How long a command and its reply can be
Typed in Discord, the whole message counts, the !cmd make line too. Line numbers past 30 are marked: from there on it only fits as a file. Action lines are the ones that start with !; !if, !else and !end do not count, and neither do the embed parts at the top.
A chat message is one line, and !cmd add and the name count toward its 500 characters. Line numbers past 1 are marked: from there on it only fits on the dashboard. Action lines are the ones that start with !; !if, !else and !end do not count.
- Typed in Discord
- 30 lines and 2,000 characters for one command.
- From a .txt file
- 120 lines and 8,000 characters for one command.
- Each use
- At most 15 action lines run (lines that start with
!). Text lines and the embed parts do not count.
- An embed
- Embed title 256 characters, embed text about 4000. Author 256, footer 2048, a field's name 256 and its value 1024, 25 fields, 6000 in all. These limit the reply in Discord. The command you write here keeps the limits above, and the counter under the editor counts the command, not the embed.
- Several at once
- Up to 10 commands in one Discord message: one per line, Shift+Enter between them, each line starting with your server's prefix. One reply answers them all, in order.
Several at once is for running commands, like !r 1d20 then !r 1d6. A command you make here keeps all its lines as one command.
- Pasted in chat
- One line, and 500 characters with
!cmd add and the name counted. Twitch chat sends no line breaks.
- On the dashboard
- 120 lines and 8,000 characters for one command.
- The reply
- Chat shows one line of at most 500 characters: Reina Bot joins the command's lines with a space and cuts the end. Embeds, charts and
** bold do not show.
- Each use
- At most 15 action lines run (lines that start with
!). Text lines do not count.
- Links
- A link you write in a command stays, because moderators write commands. A link a viewer types after a command is left out of the reply.
- Your channel
- 200 commands and 2,000 saved values.
Your account
Without an account, saved commands stay in this browser only: nothing is sent anywhere. Clearing this browser's site data, or the Forget me button, removes them, so press Download all now and then to keep a copy as a file.
Signed in with Discord, your saved commands and snippets are kept in your account by Reina Bot, and this browser keeps none of them. Reina Bot never runs or shows them; only you see them. Sign out everywhere ends your sign-in on every device. Saving needs Reina Bot to be reachable: if they are not, press Download .txt to keep what you wrote.
Signing in here reaches only what you save on this page. The Reina Bot dashboard asks you to sign in on its own page. Put it live asks for that sign-in too, once.
Reina Bot reads only your id from Discord's sign-in, and does not keep Discord's sign-in token. Reina Bot does not see the other servers you are in. The Privacy Policy lists what Reina Bot keeps.
What signing in shares, and how long it lasts
Signing in asks Discord for the identify permission, and Discord's sign-in also shares your name and avatar.
Reina Bot reads only your id from Discord's sign-in, and does not keep Discord's sign-in token. To show who is signed in they look your name up separately and keep it in memory for about an hour, never in their database. Your picture comes the same way, as a Discord address that is never stored, and your browser loads it from Discord, so Discord sees your internet address, as it does for any picture.
The sign-in lasts 7 days, or until you click Sign out everywhere, which ends your sign-in on every device. A sign-in you do not use for 48 hours ends by itself.
What this page does
Build any command for Reina Bot on Discord: a scoreboard for a pool game, a counter, coins, an answer to a common question, a random pick, or dice. Its limits are counted as you type. If it fits in one Discord message, copy it and paste it. If it is bigger, download it as a .txt file and attach it in Discord.
Build any command for Reina Bot on Twitch: your socials, a Discord invite, a schedule, a hug, a death counter or a game UID. Its limits are counted as you type. If it fits on one line, copy it and paste it in your chat. If it has more lines, press Put it live.
Everything you write stays in your browser until you choose to save it. Without an account, saved commands stay in this browser. Signed in with Discord, they are kept in your account, so they show on your mobile and every browser you sign in on. Your draft stays in this browser, so a refresh keeps it, and it stays in the editor when you switch bots.
Put it live sends the command's name, lines and category to Reina Bot, only when you press it, and only to the place you pick.
Import from Nightbot or StreamElements sends the text you pasted to Reina Bot when you press Show what would be added. Reina Bot reads it and keeps none of it. Only the commands you check are saved to your Twitch channel.
Save the command in the editor under its name, and open it here the next time you visit. Each bot keeps its own list here, so a Discord command and a Twitch command can share a name. Download all keeps both lists and your snippets as a file. Select lets you delete several at once.
Load a .txt opens a command you downloaded here or from Reina Bot. It also reads the backup that Download all makes (under My commands) and puts every command and snippet in it back: in your account while you are signed in, and otherwise in this browser. The file is read in this browser, and only that saving sends anything.