Robtic Docs robtic.org
Robtic RulesThe language

Messages

Put values into text, write in two languages, and send plain messages, embeds or components with buttons.

Values in text

Anything inside { } is an expression, filled in when the rule runs:

reply "{member.mention} reached {member.streak} days ๐Ÿ”ฅ"
Robtic SystemAPPToday at 12:00
@Sara reached 7 days ๐Ÿ”ฅ
  • Durations show as words ("2 days"), dates as "21 Nov", times as a Discord timestamp, members as their name, roles and channels as mentions, :fire: as ๐Ÿ”ฅ.
  • Write {{ for a real {.
  • Plurals: plural(member.streak, "day", "days").

Two languages

reply en "Saved!" ar "ุชู… ุงู„ุญูุธ!"

The bot answers in the server's language (General โ†’ Language on the dashboard). Any text can be bilingual: messages, labels, reasons, descriptions.

Embeds

reply embed {
  title: "{target.name}'s streak"
  text: "๐Ÿ”ฅ **{target.streak}** days"
  footer: if target.streak > 0 then "Keep going!" else "No streak yet"
  color: #f97316
}
Robtic SystemAPPToday at 12:00
Sara's streak
๐Ÿ”ฅ 12 days
Keep going!

Fields: title, text, footer, color, image, thumbnail. Commas between them are optional. An empty field (a picture setting nobody uploaded) is left out.

Components

Discord's newer layout: a container with the colour as its accent, the title and text inside, the picture under them. It takes the same fields.

plugin "Partner wall" for system
version 1

input channel: channel "Channel" required
input description: text = "{option.about}" "Description"
input banner: image "Banner"

command "partner" "Post a partner"
  option name: text "Server name" required
  option about: text "About them"

rule "Post"
when command "partner"
then
  send components {
    title: "{option.name}"
    text: input.description
    image: input.banner
    color: #5865f2
  } to input.channel
Robtic SystemAPPToday at 12:00
Arab Gamers
The biggest Arabic gaming community.
Note

Embed or components is the plugin's choice, written in its code. The settings page only asks for the text and the picture.

Private replies

private replies are seen only by the person who used the command or button:

reply "You can't do that." private
Robtic SystemAPPToday at 12:00
You can't do that.
๐Ÿ‘ Only you can see this