Commit Graph

70 Commits

Author SHA1 Message Date
Guangcong Luo
09ad03089a Merge pull request #1649 from Morfent/trivia
Trivia plugin: fix crash in /trivia join
2015-03-19 19:56:01 -05:00
Morfent
57c106862d Trivia plugin: fix crash in /trivia join 2015-03-19 21:15:58 -03:00
Guangcong Luo
de142a407a Merge pull request #1599 from Morfent/trivia
Trivia plugin: optimize, question statistics...
2015-03-14 15:41:24 -05:00
Morfent
252a56e3a6 Trivia plugin: optimize, question statistics...
- participants are now stored in a map
- part of the score calculations are now handled on answer, rather than
  all of them being done when the answering period ends
- the responders object has been removed in favour of storing more
  information in participants
- /trivia qs with no argument returns question statistics
- some slight optimizations in the question commands
- /trivia help is now less verbose
- the code is now much more legible
2015-03-14 17:24:38 -03:00
The Immortal
21d0390b00 Wi-Fi Plugin: Remove space in winning message 2015-03-11 22:01:48 +04:00
Siiilver
047d0243d3 Added in an exception in the IP checking part of the code.
Added an exception "matchUser.userid !== user.userid", so that the original user isn't recognized as an alt.
http://prntscr.com/6eyje8
2015-03-10 13:01:39 +05:30
codelegend
d37bff05cc wifi plugin: improve performance of alt checking 2015-03-07 16:42:10 +05:30
Rhythms
81256fdd22 Add aliases for wifi
well, ``lotto`` is a command, so it makes sense that ``join`` and ``leave`` have ``joinlotto`` and ``leavelotto`` as aliases in addition to ``joinlottery`` and ``leavelottery``.
2015-03-07 00:06:46 -07:00
Kris Johnson
cc6fb8e8d7 Add aliases
``/trivia ranking`` is pretty much like /ranking on the ladder
`/trivia create`` is just like when using ``/tour create``
2015-03-06 15:55:04 -07:00
Guangcong Luo
cd79765ff8 Merge pull request #1589 from Morfent/thestudio
The Studio plugin: separate response for changing nominations
2015-03-05 20:13:21 -06:00
Morfent
552c123f9c The Studio plugin: separate response for changing nominations 2015-03-05 21:27:17 -04:00
Guangcong Luo
951a7a1602 Merge pull request #1576 from Morfent/thestudio
The Studio plugin: implement prenominations
2015-03-03 14:57:31 -06:00
Siiilver
fae8082cbb Fixed problems with guessing
Users weren't able to guess more than once in a question giveaway because their current name was in their list of previous names.
http://prntscr.com/6c5r4p

Added a line of code to fix that problem. Thanks to Cranham (and maybe a few others too) for pointing this out originally, btw.
2015-03-03 19:02:20 +05:30
Morfent
c083764bc9 The Studio plugin: implement prenominations 2015-03-03 05:16:26 -04:00
Morfent
098c1d7caf The Studio plugin: overhaul nomination commands
The plugin can now manage nominations on its own instead of not doing
much more than broadcasting HTML, and the Artist of the Day survives
hotpatching and server restarts.
2015-03-01 17:54:49 -04:00
Ivo Julca
253c2b951e Update dependencies 2015-02-23 04:14:30 -05:00
Blizzard
f0f98a61b5 Update grammar and merge search commands into one. 2015-02-18 20:13:21 -05:00
Bär Halberkamp
f96501961c Fix some problems in the TCG searcher 2015-02-12 01:50:56 +01:00
Bär Halberkamp
14d478d3b8 Fixed up the TCG search functions 2015-02-11 16:00:28 +01:00
codelegend
efb6d60fcd Revert "Wi-fi Plugin: Finish Exporting states" 2015-01-30 23:24:34 +05:30
Guangcong Luo
5b01b63833 Merge pull request #1476 from DanielCranham/patch-3
Wi-fi Plugin: Finish Exporting states
2015-01-28 19:11:10 -06:00
Guangcong Luo
d68440d896 Merge pull request #1478 from Morfent/trivia
Trivia plugin: actually fix /trivia add permissions
2015-01-28 16:25:39 -06:00
Cranham
2982dc3cb9 Wi-fi Plugin: Finish Exporting states
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
2015-01-28 21:51:41 +00:00
Morfent
ab0a5fdae2 Trivia plugin: actually fix /trivia add permissions 2015-01-28 17:34:46 -04:00
Guangcong Luo
41ce1115cd Merge pull request #1475 from bumbadadabum/master
Implemented a mtg search function as well, together with fixing concerns
2015-01-28 13:37:02 -06:00
Bär Halberkamp
78d0d86f20 Implemented a mtg search function as well, together with fixing some of the concerns in my previous PR 2015-01-28 13:34:44 +01:00
The Immortal
aacc51ac02 Wi-Fi Plugin: Allow unregistered users to join lotteries 2015-01-28 04:39:08 +04:00
Bär Halberkamp
c3f15e8d72 Added a /yugioh command for the TCG room, allowing the user to search for yugioh cards 2015-01-27 14:29:19 +01:00
Siiilver
5b8cb3ce30 Prevent guests from joining lotteries.
Fixed small error. ~_~
2015-01-27 17:27:38 +05:30
Morfent
c4b2c6fad4 Trivia plugin: fix /trivia add permissions 2015-01-26 01:41:50 -04:00
Guangcong Luo
db66e3abb1 Merge pull request #1456 from Morfent/chatplugins
Chat plugins: finish exporting plugin states
2015-01-21 15:45:21 -06:00
Guangcong Luo
d8023041e0 Merge pull request #1457 from codelegend/wifi-patch3
wifi plugin: export plugin data
2015-01-21 15:45:16 -06:00
blazikenmask
b40252065f wifi plugin: export plugin data 2015-01-21 12:02:35 +05:30
Morfent
49f8023f4a Chat plugins: finish exporting plugin states
(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.
2015-01-21 00:00:34 -04:00
Guangcong Luo
15f4cd409b Merge pull request #1451 from Morfent/chatplugins
/hotpatch chat preserves chat plugin exports
2015-01-20 20:51:48 -06:00
Morfent
7c305c01d6 Trivia plugin: preserve state over /hotpatch chat
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.
2015-01-20 20:53:36 -04:00
blazikenmask
ae6ccd30a8 wifi plugin: remove unused object, some minor style changes 2015-01-19 17:29:09 +05:30
Guangcong Luo
8022eab491 Merge pull request #1408 from Morfent/trivia
Trivia plugin: instantiate Trivia for each game
2015-01-16 16:00:59 -08:00
Morfent
179debc922 Trivia plugin: instantiate Trivia for each game
...over using an unreliable singleton to handle them.

Export triviaData to CommandParser imstead of the trivia room when the
first Trivia instance is created.
2015-01-16 12:15:11 -04:00
Cranham
fc26ef8df1 Wifi Plugin: Make questions less restrictive
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
2015-01-16 05:40:29 +00:00
Cranham
fb8ecc7865 Wi-Fi Plugin: allow global staff to use script
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
2015-01-13 07:05:25 +00:00
Cranham
ae49c9d0f7 Wifi Plugin: Fixing a command
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
2015-01-12 14:18:01 +00:00
blazikenmask
47f38b34e9 WiFi plugin: fix grammatical errors, slighly modify giveaway object 2015-01-11 18:53:50 +05:30
Guangcong Luo
daa073d687 Merge pull request #1383 from codelegend/wifi
Add wi-fi chat plugin: giveaways
2015-01-09 20:57:53 -08:00
Morfent
94458778da Trivia plugin: use command namespacing, fix typos
...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
2015-01-07 03:26:38 -04:00
Morfent
eda1783a9c Trivia plugin: export triviaData 2015-01-05 17:02:43 -04:00
Morfent
2e6022220b Trivia plugin: fix endless games...
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
2015-01-04 20:21:01 -04:00
blazikenmask
3f898e67b4 add wifi plugin: giveaways 2015-01-03 14:27:35 +05:30
Guangcong Luo
cfd02b9380 Fix crash in Scavengers 2014-12-22 14:49:27 -05:00
Guangcong Luo
660682b665 Merge pull request #1299 from kotarou3/jeopardy
Jeopardy
2014-12-15 15:57:52 -06:00