Commit Graph

96 Commits

Author SHA1 Message Date
SolarisFox
2f4b511b42 refactor /help 2015-04-25 00:44:14 -07:00
SolarisFox
336cbc462a Move config/commands.js to chat-plugins 2015-04-25 00:44:07 -07:00
Guangcong Luo
f12931e9fd Move command API doc to chat-plugins/COMMANDS.md 2015-04-24 23:51:38 -05:00
sirDonovan
c80d541dcc Trivia plugin: fix /trivia help
Fix typos and line breaks
2015-04-22 04:31:41 -05:00
Morfent
bee3a73559 Trivia plugin: optimize question handling...
Binary searches are now used instead of linear ones when splicing
questions in and slicing all the questions in a category from the
questions arrays. Stalemates are now handled after scoring answers
instead of just before asking a question.
2015-04-17 07:23:01 -03:00
Morfent
3aada3608b Trivia plugin: fix crashes from question submission 2015-04-16 22:35:18 -03:00
Joimer
b480deb2d2 Fix typo in Trivia ladder function 2015-04-15 00:49:55 +02:00
sirDonovan
376406aadd The Studio plugin: fix crashes and nominations 2015-04-14 02:29:36 -05:00
Morfent
41b4c3cbc1 Trivia plugin: optimize ladder updates, bug fixes
- the ladder is now saved in triviadata.json, and gets updated at the
  same time ranks do instead of needing to loop through the leaderboard
  once more
- Trivia.inactivityCounter clears properly on answer
- number and timer modes accept multiple answers again
- added question and intermission timeout consts
- Trivia property names are more specific
2015-04-12 17:40:12 -03:00
Morfent
3fd7efebf1 The Studio plugin: fix /aotd end 2015-04-11 22:49:28 -03:00
Ivo Julca
f6146b1a6d Plugin AotD: support io.js without es6-shim 2015-04-11 20:38:12 -05:00
Konrad Borowski
d87a307796 Allow | as alternate separator for /starthunt. 2015-04-11 15:29:34 +02:00
Morfent
89ccdd5203 Trivia plugin: fix rank sorting, levenshtein answers 2015-04-07 07:47:59 -03:00
Rhythms
f4ca4b8a8b TCG: fix spacing
wasn't really needed, but it's 'more correct.'
2015-04-04 11:58:45 -06:00
sirDonovan
44bd86f9f3 Wi-Fi Plugin: various fixes/improvements
Fix giveaways becoming frozen/endless from hotpatching, fix possible
crash in lottery giveaways, simplify lottery drawings, and improve
wording in multiple statements
2015-04-04 08:15:20 -05:00
Morfent
9c7cae1aea Trivia plugin: score ladder and ranking, bug fixes
- /trivia rank now shows the user's rank for each of the three score
  types
- Add /trivia ladder
- Fix crash in timer mode scoring
- Fix /trivia submit excluding all but the first answer in certain cases
- Fix /trivia accept and reject
- Consistent object notation
2015-04-02 10:10:25 -03:00
Cranham
ba249224a9 Wifi Plugin: Log what user have done giveaways
Log the user that the giveaway was done for in the modlog ontop of roomauth who did it

Wifi Plugin: Log what user have done giveaways

remove 'has'

Wifi Plugin: Log what user have done giveaways

Add back in the space.
2015-04-01 15:54:00 +01:00
The Immortal
476d00a079 Merge pull request #1700 from Morfent/trivia
Trivia plugin: fix crash in timer mode scoring
2015-03-31 16:17:14 +04:00
Morfent
36817bedf9 Trivia plugin: fix crash in timer mode scoring
Theoretically it's possible to get over 5 points from answering if the
answer was sent before the current question's askedAt was reassigned.
2015-03-30 23:04:14 -03:00
Cranham
eb8421d157 Wifi Plugin: fix /showanswer
Fixes a case where /showanswer was not working correctly due to incorrect operators.
2015-03-31 00:09:10 +01:00
Morfent
b5455d1bf5 Trivia plugin: fix crash in /trivia kick 2015-03-30 04:43:01 -03:00
Quinton Lee
8e0a50dc97 Trivia plugin: fix crash in /trivia kick 2015-03-30 01:25:45 -05:00
Morfent
d166d06fb2 Trivia plugin: fix crash in /trivia accept and /trivia reject 2015-03-24 05:44:06 -03:00
Juanma Serrano
b525928731 Fix crash in Trivia plugin
Target is being splitted and saved on var indices, but target itself is still a string.
2015-03-23 17:33:47 +01:00
Guangcong Luo
56a7e723fa Merge pull request #1652 from Morfent/trivia
Trivia plugin: scoring bug fixes
2015-03-20 02:07:01 -05:00
Morfent
cf25f0afa9 Trivia plugin: scoring bug fixes 2015-03-20 03:04:14 -03:00
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