Commit Graph

551 Commits

Author SHA1 Message Date
Ben Davies
4d34ac3996 Trivia: fix crash in /trivia status, fix other trivial bugs (#2660)
- /trivia status no longer crashes if a username is provided as a target
- Timer mode no longer gives users scores of NaN
- /trivia start no longer displays that the game is starting in 30000 seconds,
- 	rather than 30 seconds
- Questions no longer appear as escaped html during games
- Corrected misleading documentation on why the noop methods of trivia exist.
2016-07-31 23:59:38 -05:00
Ben Davies
d00ba49b1c Trivia: game management code rewrite (#2626)
Part 1 of the rewrite for the entire plugin
This is the rewrite of the classes and commands that handle running
trivia games. Several bugs that happened when running trivia games were
fixed, and unit tests were added to help keep them gone.
2016-07-31 18:29:51 -05:00
panpawn
36d7728b06 Update help commands to reflect new bot rank (#2634)
Also, give the bot rank the new addhtml permission in config/config-example.js

... And, we are going to fix promoting locked users to rank bot.
2016-07-20 19:50:47 -06:00
panpawn
cbcbfad56e List the new bot rank in /groups (#2633) 2016-07-20 19:50:16 -06:00
Guangcong Luo
3681ccfbc1 Implement /addhtmlbox
Bot-specific command to add an infobox.
2016-07-20 21:03:08 -04:00
panpawn
5858c809c9 Implement bot rank (server-side) (#2632)
This was inspired by https://github.com/Zarel/Pokemon-Showdown/pull/2471

We are also removing the github-specific code from /htmlbox as well, removing the modchat alias of * for player, and we are giving room owners and leaders the roombot permission so they can promote to it.
2016-07-20 16:47:37 -06:00
urkerab
9ceac3768d Show the contest condition as one of the move's details (#2625) 2016-07-16 15:35:57 -06:00
Guangcong Luo
8325f470b9 Remove Trivia plugin 2016-07-16 15:15:07 -06:00
panpawn
737f19d67a Datasearch: fix error reply lag (#2621)
By having ``return`` in these instances, the line ``room.update();`` never happens, so it gives the illusion that the server is lagging when it's probably not.
2016-07-13 01:02:24 -04:00
Bryan AA
5e73377c15 Use errorReply instead of sendReply in necessary cases (#2620) 2016-07-11 22:47:49 -04:00
Hidden50
3c18b58817 Add "muted in" to /whoare (#2600)
Lists the rooms that a user is muted in: http://i.imgur.com/xaO8sCx.png

Similar to "banned from", this can be useful to determine if a user is
hitting multiple rooms.
2016-06-27 15:23:55 -07:00
Guangcong Luo
a8fa6b15e4 Fix crash in /host 2016-06-23 19:50:57 -04:00
Konrad Borowski
3ae76495bb Output max question count on jeopardy creation failure 2016-06-19 21:42:46 +02:00
Guangcong Luo
76b0611dc9 Show lock/ban reasons in /whoare 2016-06-17 04:43:07 -04:00
asgdf
18768f9a39 Allow non-broadcasted use of /roomhelp in lobby/battles (#2587) 2016-06-16 06:19:19 +02:00
Bär Halberkamp
0b3610c0e5 Wifi: Display . and - in lottery answers 2016-06-11 04:35:17 +02:00
Ivo Julca
d5cb9af524 Polls: warn when trying to queue commands on creation 2016-06-02 19:31:32 -05:00
Ivo Julca
80b4ba55ad Polls: add support for multiline input in creation and HTML in options 2016-05-29 18:36:59 -05:00
Ivo Julca
b6b7b3cca3 Poll: Export Poll class 2016-05-26 18:55:30 -05:00
Bär Halberkamp
7fe96fc137 Wifi: Improve various things 2016-05-14 18:23:07 +02:00
Bär Halberkamp
70b9f9279c Wifi: fix ending messages 2016-05-14 18:23:07 +02:00
Bär Halberkamp
682a9cefbd Fix lottery giveaway with more than 1 winner 2016-05-14 03:19:59 +02:00
Bär Halberkamp
714a0823f3 Wifi: add a missing </p> 2016-05-14 03:16:04 +02:00
panpawn
a0f8a86d45 Wifi: Escape lottery ending message (#2559) 2016-05-13 03:44:19 +02:00
Bär Halberkamp
fd608b7629 Wifi: Improve lottery ending message 2016-05-12 18:27:00 +02:00
Bär Halberkamp
9b7a76fea6 Wifi: Fix question GAs 2016-05-12 16:11:43 +02:00
Bär Halberkamp
9259c2fe00 Fix a bug in the wifi chat plugin 2016-05-12 13:15:23 +02:00
Guangcong Luo
37f880e9fc Suppress constructor errors
Unless we want to change the syntax for data tables like pokedex.js,
'constructor' will always exist as a table key.

These changes represent the bare minimum to prevent this from
causing too-weird behavior.
2016-05-11 05:07:02 -04:00
Marty-D
4c153afcee Wi-Fi Plugin: Update results messages
Got lost in 2a600596d6
2016-05-08 21:38:34 -04:00
Bär Halberkamp
2a600596d6 Rewrite and improve the wifi giveaway plugin 2016-05-09 01:52:42 +02:00
Vacate
91d19f95d6 Minor wording fixes in /movesearch (#2551) 2016-05-08 03:05:26 +04:00
Marty-D
d62cee0ff8 Wi-Fi Plugin: Update results messages 2016-05-07 15:04:30 -04:00
Guangcong Luo
4a995350bb Shim Array#includes
This also refactors everything to use Array#includes except data
and mods, which are large enough that I'll refactor them later
probably.
2016-05-04 02:55:18 -07:00
Ivo Julca
232785b1d1 DataSearch: handle exceptions in queries 2016-05-02 22:48:07 -05:00
Quinton Lee
b0cef1f17f Follow all player renames in roomgames (#2538)
Fixes various crashes caused by roomgame players changing names outside
of the room
2016-04-30 02:03:05 -07:00
Ivo Julca
22779102cc Lint: Add miscellaneous extra rules
Among the newly added rules, there are quite a few intended to enforce
compliance of CONTRIBUTING.md-blessed idioms, as well as ensure
safe usage of classes and constant bindings.

We are also now enforcing usage of early return in commands.js,
which has 100% compliance as of fd2c45c.
2016-04-25 21:52:21 -05:00
Ivo Julca
c190b006b7 Replace explicit iterable protocol usage by for-of loops 2016-04-25 21:41:35 -05:00
Quinton Lee
78ae2e526f Update /faq and /intro (#2533)
The on-site FAQ and beginner's guide have been moved to a forum thread
to ease maintenance. This removes several entries from /faq because you
can't link to specific sections of a forum post. Unmatched targets now
link to the general FAQ post instead of giving error messages for
somewhat backwards compatibility with removed entries.
2016-04-23 23:42:26 -07:00
urkerab
7b292840aa Add contest conditions to move searches (#2519) 2016-04-17 06:37:09 -07:00
Caleb Young
d02a2edd49 Wifi Plugin: Prevent muted/locked users joining giveaways (#2516) 2016-04-16 06:58:36 +04:00
Caleb Young
4b50059d24 /dexsearch - Prevent LC Ubers being included in LC (#2506) 2016-04-14 04:30:14 +04:00
Guangcong Luo
58a306d7f9 Add roomauth to /whois
This updates /whois to match the trainer card.
2016-04-13 05:41:46 -04:00
Ivo Julca
ea9f7e3bd4 Poll: Add support for HTML in questions 2016-04-12 21:04:29 -05:00
Guangcong Luo
df9997b748 Nicer looking poll buttons 2016-04-11 19:49:15 -04:00
Marty-D
894bc54fef Info: Fix /details display for falsy values 2016-04-08 14:35:03 -04:00
Quinton Lee
dfa2ca22ae Add hh:mm:ss option in Tools#toDurationString (#2493) 2016-04-08 07:14:48 -05:00
Quinton Lee
2b620f1c41 The Studio plugin: fix state importing 2016-04-07 20:16:36 -05:00
Konrad Borowski
580ab7ebd9 Scavengers plugin: Time should be based on /starthunt time (#2492)
The feature in question is for certain ladder gimmicks, and time

should count from beginning of a hunt, rather than entering /joinhunt

command.
2016-04-07 14:35:10 -07:00
panpawn
5ff893b8a5 polls: Make button style remain consistent
Before, if a button text spanned over one line, it would default to the OS buttons.



Using the button class with in-line CSS, this makes the buttons remain consistent regardless of how many lines the button spans for a poll question.
2016-04-06 21:12:04 -07:00
Quinton Lee
475497d2aa Scavengers plugin: show finishing times 2016-04-06 23:10:47 -05:00