Functionalities
Other
$log
Logs the provided content in the console and/or sends it in the channel if the 2nd field is defined as `return` or `send`.

FUNCTION USAGE

  • $log[content]
  • $log[content;return/send]

Properties:

content - The content to be logged on the console. Can log responses of full code return/send - If 2nd field is labeled "return" or "send", the function will return the logged data to the channel as well.

Example 1: Simply logs the content in the console.

1
bot.Command({
2
name: "say",
3
code: `
4
$message[]
5
$log[$message[]]
6
`
7
})
Copied!

Example 2: Logs the content in the console and returns the logged data to the channel.

1
bot.Command({
2
name: "say",
3
code: `
4
$log[$message[];return]
5
`
6
})
Copied!

Example 3: Logs the content in the console and returns the logged data to the channel.

1
bot.Command({
2
name: "say",
3
code: `
4
$log[$message[];send]
5
`
6
})
Copied!
Last modified 8mo ago
Copy link
Contents
Properties: