Reina

Reina Bot: Command Workshop

Write your own commands with room to spare.

Which bot is this command for?

Open my dashboard See Reina Bot's commands

My commands

    Your account

    Sign in with Discord to see these on every device. You do not have to: without signing in, you can still save here, in this browser.

    Sign in with Discord

    Write the command for Discord

    Pick a starter template

    Add parts to your command

    Words the person typed

    Variables and tests

    Dice

    Embed parts (added at the top)

    Put embed on the first line to reply as an embed; add words after it for a title; color gold on the next line sets the color. The other embed parts go right under it, each once (a field up to 25 times). Lower down, the same words are plain text. chart bar under embed draws a chart from the data lines; the Commands page lists the chart types.

    Point at or tap a button to see what it adds.

    <word1> is a blank. Press to see how it works.

    Preview

    What the reply looks like

    Send it to Reina Bot

    Paste it as one message

    For a command up to 30 lines that fits in one Discord message.

    In Discord, paste it as one message and send it.

    Send it as a file

    For any command up to 120 lines and 8,000 characters.

    In Discord type !cmd make name, attach the file (the + button), and send.

    A server starts with the prefix !, and a moderator can pick another. If yours did, type that prefix in place of the ! before cmd. Action lines inside the command always start with !, whatever the prefix is. To make the same command again with changes, send it again with the same name. It is an ordinary message, not a slash command. Your own commands are off in a server until a moderator turns them on with /custom settings.

    Help

    <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 typeReina Bot says
    !hi SamHi Sam, welcome!
    !hi LeoHi 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.

    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.

    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.
    { }
    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.
    !
    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.

    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.

    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.

    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.

    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.

    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.

    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.

    Put it live

    Import from Nightbot or StreamElements

    Bring your custom commands into your Twitch channel in one go. Paste them below, or press Load a file. Reina Bot shows what would be added, and saves only the ones you check.

    Reina Bot reads three things. The JSON list of commands that Nightbot gives (its API shows it as {"commands": [{"name": "!hi", "message": "Hi $(user)"}]}). A JSON list of StreamElements bot commands. Or one command on each line, which always works: !hello Hi $(user), with -ul=mod and -cd=10 after the name if you like. As far as Reina Bot knows, neither site has an export button, so the lines are the easy way: copy each command from your Nightbot or StreamElements commands page. Up to 50,000 characters and 200 commands at a time.

    What is sent: only the text in the box, to Reina Bot, when you press Show what would be added. Reina Bot reads it, shows you the commands, and keeps none of the text. Only the commands you check are saved, to your Twitch channel. Reina Bot never asks for your Nightbot or StreamElements password or token, and never opens their sites. A command you already have is skipped unless you check Replace.

    Words like $(user) and ${user} turn into Reina Bot's own. A word Reina Bot cannot do, like $(urlfetch), stays in the text with a note, and the command is not saved until you take it out.