Difference between revisions of "Extensions:Prompt Limits"

From Lorekeeper Wiki
Jump to navigation Jump to search
(created page)
Tag: 2017 source edit
 
(set to stable)
Tag: 2017 source edit
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Extensioninfobox|title=the extension's name|desc=A short description|auth=Author(s)|status=status (such as WIP, testing, stable)|github={{Github|user=username|branch=branch}}|migration=yes/no|package=yes/no}}
+
{{Extensioninfobox|title=Prompt Limits|desc=Add a limit to how many times a user can submit a prompt, set by admins.|auth=Junijwi|status=stable|github={{Github|user=junijwi|branch=prompt-limits}}|migration=yes|package=no}}
<!-- Put a short summary of your extension here! -->
+
Adds the option to set limits on prompts. These limits can be set for all time or a limited time (ex: # of times a week), and whether to be per-user or per-character.
 
== Installation ==
 
== Installation ==
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
+
Pull the branch, push, and run <code>php artisan migrate</code>.
 +
 
 +
Be careful with merging conflicts if you installed or tweaked anything around submissions or prompts areas. I cannot recommend you install this extension unless you are confident about merging, OR if you have backups created just beforehand. This is not a destructive extension, but deals with vital parts of lorekeeper (submissions and prompts).
 +
 
 +
As a note for anyone who installed the [[Extensions:Separate Prompts|Sep Prompts]] extension, you'll have to copy the code from _prompt_entry.bladephp (in World) to the one in _prompt_entry.blade.php (in Prompts) since it doesnt exist in vanilla LK
 +
 
 
== Configuration ==
 
== Configuration ==
<!-- Is any configuration necessary? Describe it here! -->
+
Go into a prompt's settings to add its limits.
 +
 
 
== Usage ==
 
== Usage ==
<!-- Is there anything users should know about using your extension? -->
+
Note that the 'per character' cap is soft-- while I could code in to check every character's submissions, this does not account for character cameos. If a prompt is once per character, and a user has two characters, then draws one prompt with two characters, it would count it as if it was both characters having used up their prompt...! If anyone has an idea to work around this logic, please feel free to contact me.
 
== Troubleshooting ==
 
== Troubleshooting ==
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
+
Feel free to @ me in the discord (Juni#0448) for any issues. I did my best to do testing in as many areas as possible, but it's possible I may have overlooked something.
 
== See Also ==
 
== See Also ==
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 

Latest revision as of 10:27, 24 September 2020

Prompt Limits
Description Add a limit to how many times a user can submit a prompt, set by admins.
Author(s) Junijwi
Status stable
Github prompt-limits
LK Version Unspecified
Contains a Migration






Adds the option to set limits on prompts. These limits can be set for all time or a limited time (ex: # of times a week), and whether to be per-user or per-character.

Installation

Pull the branch, push, and run php artisan migrate.

Be careful with merging conflicts if you installed or tweaked anything around submissions or prompts areas. I cannot recommend you install this extension unless you are confident about merging, OR if you have backups created just beforehand. This is not a destructive extension, but deals with vital parts of lorekeeper (submissions and prompts).

As a note for anyone who installed the Sep Prompts extension, you'll have to copy the code from _prompt_entry.bladephp (in World) to the one in _prompt_entry.blade.php (in Prompts) since it doesnt exist in vanilla LK

Configuration

Go into a prompt's settings to add its limits.

Usage

Note that the 'per character' cap is soft-- while I could code in to check every character's submissions, this does not account for character cameos. If a prompt is once per character, and a user has two characters, then draws one prompt with two characters, it would count it as if it was both characters having used up their prompt...! If anyone has an idea to work around this logic, please feel free to contact me.

Troubleshooting

Feel free to @ me in the discord (Juni#0448) for any issues. I did my best to do testing in as many areas as possible, but it's possible I may have overlooked something.

See Also