Commit Graph

48 Commits

Author SHA1 Message Date
Cohee 07677584c4 #1781 Fix /len and unescape for non-string arguments 2024-02-03 02:06:49 +02:00
LenAnderson 2cdf928fc7 unescape args before calling callback 2024-01-26 18:58:44 +00:00
Cohee d5a2f5d9fc Fix /rand returning zero #1728 2024-01-24 14:04:45 +02:00
LenAnderson d1966d9d5f fix addvar on array using setGlobalVariable 2024-01-16 22:20:46 +00:00
Cohee 2b448233e9
Merge pull request #1545 from LenAnderson/times-slash-command
add /times slash command
2023-12-15 23:39:29 +02:00
Cohee 5bda74b886
Too many lines 2023-12-15 23:39:02 +02:00
LenAnderson 279b731f64 use isFalseBoolean in while and times 2023-12-15 19:48:25 +00:00
LenAnderson 74d0ef5572 make MAX_LOOPS module wide 2023-12-15 19:47:40 +00:00
LenAnderson 6337e0bbd6 add /times slash command 2023-12-15 12:38:26 +00:00
LenAnderson 0e55648336 add rounding (round, ceil, floor) to /rand 2023-12-15 12:16:46 +00:00
LenAnderson aa1dfa8a5f add /rand slash command 2023-12-14 22:26:24 +00:00
Cohee e2f886d796 Revert pipe caching 2023-12-08 00:33:27 +02:00
LenAnderson 5a719d635a use isArray instead of instanceof 2023-12-07 18:27:11 +00:00
LenAnderson 7bfed3fca1 /addvar on array to push 2023-12-07 18:12:05 +00:00
LenAnderson 2ee57afe2a add helpString for index in setvar 2023-12-07 16:51:45 +00:00
LenAnderson db6f782e0f add index to /setvar and /setglobalvar 2023-12-07 16:48:24 +00:00
LenAnderson afd32d1f4d better handling of array / object vars 2023-12-07 12:56:28 +00:00
Cohee 5e282ac7b4 lint: infix spacing 2023-12-06 22:08:06 +02:00
LenAnderson ea7720a7de add /len slash command 2023-12-06 19:03:20 +00:00
LenAnderson a5c595d8ae add list accessors to /getvar and /getglobalvar 2023-12-06 19:03:10 +00:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive 0a27275772 Enable no-extra-semi lint 2023-12-02 10:32:26 -05:00
Cohee ca24e550a8 #1420 Revert undefined name variable resolution 2023-12-01 11:51:10 +02:00
Cohee ebcefe67fc Add value increment variable and macros 2023-12-01 03:02:23 +02:00
Cohee fe355c5d4f Add MVP set of WI manipulation commands 2023-12-01 01:50:10 +02:00
Cohee 82b7238b39 Add shorthand increment/decrement of variables 2023-11-28 16:00:04 +02:00
Cohee f3a10eadd5 Trigger concatenation on NaN current value 2023-11-28 01:46:44 +02:00
Cohee 4f9f89c682 Add 3 more math operations 2023-11-28 00:52:50 +02:00
Cohee 4c94bd0aa8 Add math operations 2023-11-27 21:10:50 +02:00
Cohee 3bc91f10ec Fix command aliases 2023-11-26 15:47:11 +02:00
Cohee 9587a704c5 Fix docstrings 2023-11-26 01:52:41 +02:00
Cohee 283d49a6ee Add empty return value to /while 2023-11-26 01:49:37 +02:00
Cohee 0bbaeeaedd Revert to get/set/add order for variable macro 2023-11-25 22:02:40 +02:00
Cohee 0410540066 Process variable macros line by line 2023-11-25 20:52:17 +02:00
Cohee 0d9068f11e Don't replace {{addvar}} macros with the execution result 2023-11-25 20:33:07 +02:00
Cohee 67174c8cf8 Add functions to delete local and global variables 2023-11-25 19:53:00 +02:00
Cohee d862005c1c Revert "Replace macros in named args of boolean evaluation"
This reverts commit 6894b7ef72.
2023-11-25 18:16:53 +02:00
Cohee 6894b7ef72 Replace macros in named args of boolean evaluation 2023-11-25 18:12:28 +02:00
Cohee 06ade803fa Concatenate strings in /addvar 2023-11-25 17:45:40 +02:00
Cohee 2c8e855385 Resolve variables in /fuzzy 2023-11-24 17:41:49 +02:00
Cohee adb3badcc1 Add /messages and /setinput commands 2023-11-24 17:12:59 +02:00
Cohee 8e16f28827 Fix variable cast 2023-11-24 14:53:12 +02:00
Cohee d81371c2b7 Fix variables casting 2023-11-24 14:44:11 +02:00
Cohee ad8709842b STscript improvements (see below)
Add /while loop
Add escaping of macros in sub-commands
Add /input prompt
2023-11-24 12:49:14 +02:00
Cohee e593dd4dbd Auto-executable QR 2023-11-24 01:32:02 +02:00
Cohee c50ed4bf6a STscript improvements (see below)
/abort command, {{pipe}} macro in named args, subcommand batch escaping with backslash, string literals and rules for /if, else clause for /if
2023-11-24 00:18:07 +02:00
Cohee 6d0982e823 Unleash the variables / STscript alpha 2023-11-23 22:36:48 +02:00
Cohee 568f352cf6 [WIP] Placeholder for built-in chat variables 2023-11-06 22:50:32 +02:00