Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
custom_commands [2022/11/06 17:21] – Adjusted the db related variables (@savedb@, @readdb@, @cleardb@) descriptions to reflect purpose. Need to have a full look through to determine if the descriptions match the expectations of the values dante557custom_commands [2022/11/06 17:22] (current) – Added ; to donate start of list in @savedb@ variable dante557
Line 97: Line 97:
 | @raffleinfo@ | Shows information about the users raffle entry status | Yes | | @raffleinfo@ | Shows information about the users raffle entry status | Yes |
 | @readdb@[Key To Read] | Reads the provided key from the key/value database. e.g. @readdb@[slots.@user@]. If the value does not exist in the database, or has expired, this variable will return with a blank value. | Yes | | @readdb@[Key To Read] | Reads the provided key from the key/value database. e.g. @readdb@[slots.@user@]. If the value does not exist in the database, or has expired, this variable will return with a blank value. | Yes |
-| @savedb@[TTL Value%%|%%Key To Change%%|%%Value To Save] | Save the provided value to the key/value database. e.g. @savedb@[60%%|%%slots.@user@%%|%%50]. The "Time To Live" (TTL) value is the number of seconds you want the provided value to be valid for. After this time has been suppassed, it will "expire" the value. You can append the TTL value with the following letters to treat it with add a different unit of timem (minute), h (hour), d (day). | Yes |+| @savedb@[TTL Value%%|%%Key To Change%%|%%Value To Save] | Save the provided value to the key/value database. e.g. @savedb@[60%%|%%slots.@user@%%|%%50]. The "Time To Live" (TTL) value is the number of seconds you want the provided value to be valid for. After this time has been suppassed, it will "expire" the value. You can append the TTL value with the following letters to treat it with add a different unit of timem (minute), h (hour), d (day). | Yes |
 | @cleardb@[Key to remove] | Clear the Key/Value database of any values that contain the provided key. You can also a single key by specifying the key (i.e. to clear a key called "slots.expertsonline" - @cleardb@[slots.expertsonline]) or multiple keys that share the same pattern (i.e. to clear all keys that start with "slots" - @cleardb@[slots.]) | Yes | | @cleardb@[Key to remove] | Clear the Key/Value database of any values that contain the provided key. You can also a single key by specifying the key (i.e. to clear a key called "slots.expertsonline" - @cleardb@[slots.expertsonline]) or multiple keys that share the same pattern (i.e. to clear all keys that start with "slots" - @cleardb@[slots.]) | Yes |
 | @token@[index%%|%%separator%%|%%search string] | Like @target@ except returns the position based on the separating character (%%|%% cannot be used for the separating character in any instance). Example: @token@[3%%|%%,%%|%%one,two,three] would return three. | Yes | | @token@[index%%|%%separator%%|%%search string] | Like @target@ except returns the position based on the separating character (%%|%% cannot be used for the separating character in any instance). Example: @token@[3%%|%%,%%|%%one,two,three] would return three. | Yes |