You are browsing as a guest. Sign up (or log in) to start making projects!

17m 15s logged

Verified the deployed Sirius Bot is still online in #sirius-bot-demo by running /sirius-hello and receiving a live reply. While reviewing /sirius-calc, I found that ^ was being interpreted as JavaScript bitwise XOR, so 2 ^ 3 returned 1 instead of 8. I replaced the Function-based evaluator with a small safe expression parser, fixed ^ to mean exponentiation, and added sqrt(…) support. I also added Node test coverage for precedence, powers, square roots, unsafe input, negative roots, and division by zero; all 4 test groups pass. Example: /sirius-calc sqrt(81) + 2 ^ 3 now returns 17.

0
2

Comments 0

No comments yet. Be the first!