Entity Info isBot

$isBot

Returns "true" if the user who triggered the command is a bot, and "false" otherwise.

Syntax
$isBot

$isBot

The function $isBot allows you to know if the user who triggered the command is a bot account or a normal user account.

Syntax

$isBot

Return Value

  • Type: String "true" or "false"
  • "true": The account is a bot.
  • "false": The account is a normal user.

Behavior

  • $isBot takes no arguments.
  • Detection is based on the bot property of the Discord user object.
  • Webhooks return "true" in certain contexts.

Examples

Simple detection

$if[$isBot==true]
  $sendMessage[🤖 Detection: you are a bot!]
$else
  $sendMessage[👤 You are a human user.]
$endif

Ignore bots

$if[$isBot==true]
  $stop
$endif
$sendMessage[Welcome $userName!] 

Conditional logging

$if[$isBot==true]
  $log[Command executed by the bot $userName (ID: $userID)]
$else
  $log[Command executed by the user $userName (ID: $userID)]
$endif

Notes

  • Very useful for preventing bots from executing certain commands (anti-looping).
  • Typically used with $stop to silently ignore executions triggered by other bots.
  • $isBot is case-insensitive in comparisons (==true / ==True / ==TRUE).