following morfents commit but updating it for the wi-fi plugin aswell, to avoid issues after hotpatching
Wi-fi Plugin: Finish Exporting states
Wi-fi Plugin: Finish Exporting states
Fix build errors
Wi-fi Plugin: Finish Exporting states
Fix massive style errors I made with indentation
(Scavengers variables) --> Rooms.get('scavengers').plugin
Jeopardy jeopardies --> Rooms.get('academics').plugin.jeopardies
The The Happy Place plugin now saves the quote of the day in
Rooms.get('thehappyplace').chatRoomData.
Export triviaData, writeTriviaData, and trivia to a cache in the Trivia and
Question Workshop room objects, if they exist, and if they have already been
exported (i.e. /hotpatch chat reloaded the plugin), reassign their cached
values so games are no longer broken.
...over using an unreliable singleton to handle them.
Export triviaData to CommandParser imstead of the trivia room when the
first Trivia instance is created.
Increase the answer field limit for answers; does not break the answer mechanics when I tested, also increasing the number of winners in lottos from 5 to 10. After a few days of having the script in the chat I feel these changes would be more suitable for it.
Wifi Plugin: Bug fixes aswell
fixing a issue of /giveaway end returning the 'access denied message' but still ending the giveaway
Wifi Plugin: Bug fixes aswell
Fixed /giveaway end from returning access denied message when it actually goes ahead with force ending
Allows global staff have the ability to use the script in the room; if they wish to do so, any % or higher should have the ability to start a giveaway. Furthermore updating help commands to make them more convenient to type and use.
Wifi Plugin: Global staff giveaways + help
Wifi Plugin: Global staff giveaways + help
Codelegend's previous commit broke one of the commands when tested, making the /ga command unreconized when trying to answer a question, This commit fixes that
Wifi Plugin: Fixing a command
...which would've ruined participants' leaderboard rankings, stop
binding the Trivia object's context to timeouts now that they're no
longer needed, make question database commands exclusive to Question
Workshop
Fix number and timer modes' question timeouts looping until no questions
are left, refactor Trivia object to only make methods the commands use
public, optimize /triviaaccept and /triviareject
Stop the Q/A loop from clearing timeouts constantly so games can be
ended in case it still loops endlessly, refactor game commands and
config vars, minor bug fixes in /triviasubmit and /triviastatus
This whole time I thought negative values were falsey. At least I caught it before it could crash anything again.
Also fix /triviarank picking up the wrong alt's rank
Timer mode now gives points to all who answer within the time limit
instead of the first, and /ta works more straightforwardly. sleep should
no longer cause the Q/A loop to ignore any commands until it runs out of
questions.
Fix scores broken from commit 6d7a3cf333,
remove unused curQ variable, remove unused parameters in the
commands, and lower the rank required to edit questions to %.
Fix bug in the question/answer loop that would assign undefined to
either curQ, curA, or phase, preventing anyone from answering any
questions until this.curQs was empty, by changing all of the game
variables from global variables to Trivia properties. Created a
constructor for Trivia so its methods could be kept in its prototype
object to reduce property lookup times and later to allow me to refactor
parts of the commands that deal with these properties as prototype
methods.
Fix room.addRaw not updating chat.