Docs
Dashboard
KyroScript

What KyroScript is

KyroScript is Kyro’s own language for making your own commands and automations, beyond what the built-in modules do. It reads a lot like Python: short, plain lines, with indentation for blocks. If you’d rather not type code, you can build the same thing by snapping blocks together, and switch between the two whenever you like.

⚠️ Heads up KyroScript is rolling out. These docs describe the language as it will work; the editor in your dashboard is coming next. Custom commands are a Pro and Max feature.

Your first command

Here’s a complete /hello command that greets whoever uses it:

Command file
command: hello
description: Say hello
---
reply("Hello, {user.display_name}! 👋")

A command has two parts, split by the --- line:

  • Settings (above ---): the command’s name, its description, any arguments, who can use it and what it’s allowed to do. In your dashboard these are simple boxes you fill in, so you don’t have to type them.
  • The script (below ---): what the command does when someone uses it. This is the code part, and the rest of these docs are about it.

Writing both together like this is a command file. It’s handy for sharing commands or getting them from an AI: paste the whole thing into the editor and it fills in the settings for you.

Here’s one that checks a role and pays out coins from your bot’s economy. Its settings say allow: balances, because the script changes someone’s coins:

Command file
command: reward
description: Claim the VIP reward
allow: balances
---
if has_role(member, "VIP"):
    new = economy.give(user, 100, "VIP reward")
    reply("💎 Enjoy 100 coins! You now have {new}.")
else:
    reply("This reward is for VIPs only.", private=true)

What you can do with it

  • Commands with your own arguments (text, numbers, people, channels, roles, yes/no), as slash commands, prefix commands or both.
  • Automations that run by themselves when something happens, like a member joining.
  • Reply, post in channels, send DMs, react, build embeds, give and take roles.
  • Use your bot’s economy and levels data, and save your own data between runs.
  • Soon: weather, game lookups and other internet data.

Safe by design

Scripts run inside Kyro’s own interpreter, never as raw code on our servers. Every run has limits (steps, time, Discord actions), and a script can only do the risky things you allow, like changing balances or giving roles. Server admins can switch custom commands off for their server.

⚠️ Heads up KyroScript is for building things people want in their servers. Scripts made to crash bots or Kyro, get around limits, or raid or nuke servers (mass deleting channels or roles, mass bans, spam) break the Terms. They can get the bot switched off and the account suspended.
✨ Tip Want an AI to write scripts for you? Grab the AI guide: one file you paste into ChatGPT, Claude or Gemini.
Was this page helpful?