Differences
This shows you the differences between two versions of the page.
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 dante557 | custom_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 " | + | | @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 " |
| @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 " | | @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 " | ||
| @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%%|%%, | | @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%%|%%, |