Create a calculator that includes dalmatian commands #120

Open
opened 2026-03-16 22:10:48 +00:00 by Ghost · 0 comments
Ghost commented 2026-03-16 22:10:48 +00:00 (Migrated from codeberg.org)

I had a stroke of inspiration and here is my vision:

  • A /eval command that evaluates basic mathematical expressions, such as (+, -, *, /, **, &, |, ~, floor, ceil, etc.)
  • You can call dalmatian commands inside the command, e.g. /eval role-count("Admitted" and "SCS") / role-count("Admitted")
  • A help command will likely be needed for documentation on how to use this
  • this will be easier to do once I finish extracting all the helper functions, so that commands can be easier called without the interaction wrapper
I had a stroke of inspiration and here is my vision: * A /eval command that evaluates basic mathematical expressions, such as (+, -, *, /, **, &, |, ~, floor, ceil, etc.) * You can call dalmatian commands inside the command, e.g. `/eval role-count("Admitted" and "SCS") / role-count("Admitted")` * A help command will likely be needed for documentation on how to use this * this will be easier to do once I finish extracting all the helper functions, so that commands can be easier called without the interaction wrapper
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/dalmatian#120
No description provided.