Commit graph

14 commits

Author SHA1 Message Date
Miikka Virtanen
1aa04b1cf6 Add concatArr template fn 2019-07-04 13:39:53 +03:00
Miikka Virtanen
e0f85ec0ee Add seed param to rand() template fn 2019-07-04 13:13:10 +03:00
Dragory
f5a9ac6508 Fix bug in templateFormatter variable evaluation 2019-06-22 18:49:45 +03:00
Dragory
5a91d36953 Initial dashboard work (auth flow) 2019-05-26 00:13:42 +03:00
Dragory
3f0277120b Increase template cache size from 100 to 200 2019-05-04 10:48:35 +03:00
Miikka
74cce3d093
templateFormatter: fix unknown values showing up as "false" 2019-04-17 09:43:27 +03:00
Dragory
40cb74ee28 evaluateTemplateVariable: require property to be a direct/own property of 'values', not from its prototype 2019-04-13 04:11:24 +03:00
Dragory
15408b04d7 templateFormatter: add choose() as a shortcut for cases() with a preset index that picks from the cases randomly 2019-03-16 18:52:45 +02:00
Dragory
96b2d33423 templateFormatter: add cases() template function; Tags: add set/get tag functions to store/retrieve variables within tags 2019-03-16 17:54:05 +02:00
Dragory
3491f3e0a2 templateFormatter: support negative numbers for numeric arguments; add more base functions 2019-03-16 17:28:43 +02:00
Dragory
f27da2c56f templateFormatter: return empty string for null/undefined variables; Tags: catch template syntax errors on tag creation; add mention() tag function 2019-03-16 16:59:01 +02:00
Dragory
8f898ed972 templateFormatter: fix empty string args not getting counted as arguments; add concat base template function 2019-03-16 16:39:07 +02:00
Dragory
11558df665 Logs: add permission for whether a user is pinged in logs or not (mainly to not ping mods); templateFormatter: fix error when following a plain value variable with a function variable 2019-03-16 16:10:30 +02:00
Dragory
ba3af1cb63 Add templateFormatter; migrate from formatTemplateString to templateFormatter 2019-03-16 15:42:55 +02:00