Commit Graph

369 Commits

Author SHA1 Message Date
Guangcong Luo
06bc0651b9 Fix room detection for doubles tier /data 2018-01-28 15:36:58 -05:00
Guangcong Luo
2874492f94 Don't overwrite tier 2018-01-26 14:24:54 -06:00
KrisXV
aefa8c986a Add doublesTier (#4339) 2018-01-26 14:23:38 -06:00
Guangcong Luo
4ef1c58606 Refactor various files for modern string standards 2018-01-24 15:47:18 -06:00
Marty-D
9a029f43f3
Fix /ipsearch 2018-01-23 20:19:28 +00:00
Guangcong Luo
e3a955b678 Fix mistaken const 2018-01-20 15:43:38 -06:00
Guangcong Luo
6677950e9b Deprecate chatContext.splitTargetText
chatContext.splitOne already exists and is less of a hack.
2018-01-20 14:34:52 -06:00
Guangcong Luo
ab1f995daa Rewrite Process Manager
Process Manager is now lib/process-manager.js

It's been entirely rewritten to reflect what I think a process manager
API should look like.

In particular, there are now two Process Managers, QueryProcessManager
and StreamProcessManager.

Pass QueryProcessManager a pure-ish query function (sync or async) that
takes a JSON value and returns a JSON value, and PM.query() will
execute that function in a subprocess, and return a Promise for its
return value.

StreamProcessManager is the same idea: Pass it a function to create an
ObjectReadWriteStream, and PM.createStream() will create a stream in a
subprocess and return a stream connected to it.
2018-01-18 03:34:16 -06:00
urkerab
297af3b111 Allow formats to override checkLearnset (#4341) 2018-01-16 04:16:48 -06:00
Charlie Kobayashi
331af4e794 Refactor Modlog Formatting (#3972) 2018-01-08 15:18:24 -06:00
urkerab
ff3ecccab0 Restricted makes more sense than banned in some cases (#4311) 2018-01-06 11:37:47 +08:00
Kris Johnson
a6ce5c9dc1 Refactor chat-plugins and formats to for...of (#4288) 2017-12-28 05:22:28 -06:00
Jeremy Piemonte
e0c08eafba Standardize help commands (#4285) 2017-12-27 19:35:32 -06:00
CheeseMuffin
510c6940b7 Fix generation params in /weak (#4269) 2017-12-20 16:16:08 -06:00
Quinton Lee
12d10c80d5
Fix !checkchallenges 2017-12-16 18:34:28 -06:00
Guangcong Luo
f403a5d3ea Refactor some forEach to for...of 2017-12-12 14:50:08 -06:00
Kris Johnson
e221fc6336 Fix specifying formats in /smogdex (#4224) 2017-12-08 16:34:14 -06:00
Lionyx
f82f078cf8 Update /roomhelp (#4227)
Some verbs were third-person and other were not, some lines had a capital letter at their beginning and some other didn't... This unifies it so that they all look the same~
2017-12-08 16:01:16 -06:00
Jeremy Piemonte
3bb4874276 Add privacy policy command (#4203) 2017-12-03 09:01:35 -06:00
Guangcong Luo
9bdf674d5f Refactor more tables to arrays
See #4079

Now we're just missing oldgens.
2017-11-30 19:40:16 -06:00
Bär Halberkamp
7bf5a179dd Display ip-based punishments on /ip (#4178)
Also adds Punishments.punishmentTypes, mirroring Punishments.roomPunishmentTypes
2017-11-28 08:49:09 -06:00
Charlie Kobayashi
a3b049077d Checkpunishment: Show punishments for offline users (#4168) 2017-11-20 18:31:36 -06:00
Kris Johnson
86fbb45acc Standardize formatting of OM restrictions (#4129)
* Standardize formatting of OM restrictions

Since I've already started adding and changing all of the OM banlists to
allow them to be viewable though `/om`, I figured that I'd take the
final step and standardize all OM banlists and restrictions. It's
understandable if you want things like 1v1's banlist and ruleset to
remain the same as before; I'll happily revert that part.

* Remove unnecessary space

* Unban Blazikenite from 1v1

* Revert 1v1 banlist to original state

* Re add new lines at end of file
2017-11-09 23:36:24 +08:00
Kris Johnson
fc977a33b4 Modify AAA's validation code (#4125) 2017-11-04 23:50:27 -07:00
Spandan Punwatkar
bcdff7f5f6 Fix build; fix /coverage (#4117) 2017-11-02 10:19:55 -04:00
Spandan Punwatkar
a9fd7da4a8 Support mod parameter for /weak and /coverage (#4112) 2017-11-02 00:42:27 -05:00
Kris Johnson
e6bad3bc7a Make the formatting of all smogon links consistent (#4095) 2017-11-02 00:21:21 -05:00
HoeenHero
79e0db93e3 Allow ipsearch to search specific rooms (#4075) 2017-10-22 16:01:33 -05:00
Kris Johnson
2b67af932b Don't send people to HTTPS links on smogon (#4050)
Smogon doesn't support HTTPS.
2017-10-10 23:32:06 -05:00
Kris Johnson
33445f19e6 Don't send people with HTTPS pages with /smogdex (#4049)
People have reported getting errors like https://i.gyazo.com/778739472cf16b75377bef1c506a493d.png when using `/smogdex`. While this is a smogon-side issue, this is a temporary fix to that error.
2017-10-10 22:43:56 -05:00
urkerab
eee503a0d2 Default to battle room's data (#4017) 2017-09-25 04:45:30 +08:00
Bär Halberkamp
8a8747c62b /rules: Trim target before checking for 'delete'.
This makes it harder to accidentally set room rules to "delete "
2017-09-11 23:14:14 +02:00
MacChaeger
ed0d84b3cf /formathelp: Fix near matches (#3977) 2017-09-10 20:35:35 -04:00
panpawn
f95d78c3c5 Whois: Show locked users' private rooms to staff (#3953) 2017-09-05 03:44:58 -04:00
asgdf
81a8e0672d Fix crash in /viewbanlist (#3932) 2017-08-31 06:59:41 -04:00
MacChaeger
b113cc9a57 Add command /viewbanlist (#3914)
This command is intended to be a quick-access option for checking banlists and rulesets for formats as well as descriptions of the rules that would get listed in case the user has questions.
2017-08-31 04:51:45 -04:00
panpawn
74b1230f4f Whois: Only show AC if showAll is true (#3907) 2017-08-22 17:57:09 -07:00
panpawn
d2853ac9d6 Whois: Display if a user is autoconfirmed (#3903)
This will tell if the server considers a user to be autoconfirmed or not.
2017-08-22 15:45:27 -07:00
Marty-D
be279f3703 Show unreleased status of moves and items in /details 2017-08-21 10:15:56 -04:00
HoeenHero
e25653b86a Escape HTML in punishment info (#3835) 2017-07-28 14:07:54 -04:00
Spandan Punwatkar
597416d3b2 Move /othermetas to othermetas.js (#3812) 2017-07-21 11:36:17 -05:00
Lionyx
7be5ec4ab6 Update /bugs (#3790)
This should lower the number of reports in the thread that just turn out to be misunderstood uncommon mechanics, and hopefully will lessen the number of reports in Dev
2017-07-16 19:40:55 -05:00
Quinton Lee
d54582d132 Check for name changes in /checkchallenges 2017-07-14 15:55:25 -05:00
urkerab
133e28488e Simplify coding for links to Snatchable and Mirrorable moves (#3753) 2017-07-12 01:19:37 +09:00
urkerab
f90a1d665c Show Gen as CAP instead of 0 in detail output (#3751) 2017-07-10 17:03:07 +09:00
urkerab
a274e08a8f Don't show bogus Fling message in Gen 2/3 (#3752) 2017-07-09 14:50:56 +04:00
Guangcong Luo
b78350c1ec Make /dt dex-number lookup stricter
Previously, passing anything that started with a number to /dt would
make it look it up as a dex number.

This made it impossible to look up "10,000,000 Volt Thunderbolt".

Now, it has to be exactly a number and nothing else, to be considered
a dex number for the /dt lookup.
2017-06-23 06:49:58 -04:00
Ben Davies
e46c32a4b9 Commands: fix /processes crash (#3678) 2017-06-22 21:33:02 -07:00
jumbowhales
fece2a7d50 Veekun: show help if no target is given (#3668) 2017-06-20 21:55:28 -07:00
Spandan Punwatkar
d1400f4644 Refactor /data to generate HTML (#3378) 2017-06-19 17:02:47 -07:00