$log

Premium

Logs an error message to the bot logs upon encountering a specific issue (Type parameter).

Info

You can use this function 1500 times per day.

Syntax

$log[Text;(Type)]

Parameters

  • Log Message (Type: String || Flag: Required): The text to be output to the logs.
  • Type (Type: Enum || Flag: Optional): The log type to be displayed. Default is info.

Log Types

  • success: Green color
  • info: Blue color
  • warning: Yellow color
  • error: Red color
  • bdscript: Can’t be used in $log[] function. Appears automatically when an error is made in the code. Can be disabled by $suppressErrorLogging.
  • Default input for “Type” parameter is info.

Example

$nomention
Hello world!
$log[$username used secret command!]
!example Hello world!

What is this?

How $username works?