-
-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
If $math is used with only a number return variable (eg. $math[$randomNumber[0,100]] or $math[$chatUserCount]), it returns -1 and warns with a failure message in the console
Expected Behavior
if a number-typed value is entered into $math, it should correctly be returned
Steps To Reproduce
- Create a Log Message Effect
- Add
$math[$randomNumber[0, 100]] - Run the effect
- Observe in the logs, it warns with a failure message and logs
-1
Version
v5.65.0
What operating system are you using Firebot on?
Windows 11
Relevant log output
[2025-12-10 20:49:20.863] [WARN] error parsing math expression "Unexpected type of argument in function evaluate (expected: string or Array or Matrix or boolean, actual: number, index: 0)"
[2025-12-10 20:49:20.864] [DEBUG] Running firebot:log-message(b3547745-8dfa-463f-950f-0728fd38b277) effect...
[2025-12-10 20:49:20.864] [INFO] -1Contact Details (Optional)
No response
Reactions are currently unavailable