Commit Graph

226 Commits

Author SHA1 Message Date
Ivo Julca
9b1b078534 Command API: this.run executes a command with current parameters
- Provides a straightforward way to add command aliases with own help entries.
- Encapsulates try-catch blocks.
2015-06-24 18:35:58 -05:00
CJ
6f05306df7 trivia games joinable midgame + show who submits qs
change 'to join' to 'to start'

muted users cannot join games

added way to grab user name
2015-06-23 17:27:19 -06:00
Kevin Lau
3674a03663 Fix Thousand Arrows' interaction with effectiveness commands
Treat Thousand Arrows' effectiveness as if it were the second hit on, but
add a warning to the relevant commands informing the user that the first
hit will have a different effectiveness.

This fixes the crash in /effectiveness and /coverage when Thousand Arrows
is used.
2015-06-21 15:06:27 -07:00
Bryan AA
28fbbe7bb0 Add "chall" as a alias of "Challenge" in Faq
- Add "chall" as a alias of "Challenge" in Faq, so people can do /faq chall, I add this because in challenge command they have a alias named "chall".
2015-06-21 09:12:18 -06:00
The Immortal
905f5c7560 Info: Update /om omotm 2015-06-21 17:55:19 +04:00
The Immortal
44f98f44a3 Chat-plugin: Update TCG to its new room 2015-06-21 16:58:25 +04:00
Bryan AA
647e29e500 Improve help provided by commands
Send a help reply if there is no target in /roomowner and /roomdeowner command.
Add 2 new aliases for pm faq.
2015-06-20 11:52:38 -06:00
Guangcong Luo
b9bc319b97 Protect against crash in /host 2015-06-19 21:44:02 -04:00
Bryan AA
a6a57c6e5c Add "this.parse" on thestudio.js commands and fix /demote command 2015-06-19 13:04:00 -06:00
Bryan AA
b57fb88123 Add a reply if someone use a command of thestudio.js in other room 2015-06-18 14:49:20 -06:00
The Immortal
4e6027f58b Merge pull request #1977 from Bryan-0/patch-31
Fix some errors in info.js file
2015-06-17 05:38:27 +04:00
Bryan AA
5343b9cc81 Fix some errors in info.js file 2015-06-16 18:11:02 -06:00
Guangcong Luo
2bd4057e15 Fix failing test 2015-06-16 19:45:43 -04:00
Guangcong Luo
6010cbac19 New command /host
Looks up the host for an IP, including .nohost lookups.
2015-06-16 19:12:21 -04:00
sirDonovan
3bb410f0d1 Fix crashes in chat plugins
The old mute system was still in place, updated to reflect changes from
09be77d0b8
2015-06-16 17:56:07 -05:00
Bryan AA
73f208dcef Add "this.parse" in /invite command 2015-06-15 16:32:20 -06:00
The Immortal
80fa798705 Improve /smogintro 2015-06-15 23:38:50 +04:00
Juanma Serrano
df5773bbf5 Merge pull request #1941 from Bryan-0/patch-17
Fixing smogintro link
2015-06-15 20:39:10 +02:00
Bryan AA
008f2cba5b Fixing smogintro link 2015-06-15 12:34:15 -06:00
Bryan AA
1c58b568a1 Fix some errors in commands 2015-06-13 15:10:18 -06:00
Guangcong Luo
cf112d1d3c Merge pull request #1945 from Slayer95/jscs-rules
Implement custom JSCS rules to enforce code style
2015-06-13 06:18:24 +00:00
The Immortal
7210185ffc Merge pull request #1935 from kubetz/master
Remove 'FE' parameter from dexsearch help
2015-06-13 09:38:43 +04:00
Bryan AA
4e3acb74c9 Add "#" on requires 2015-06-12 18:34:46 -06:00
Bryan AA
966da4d7ab Escape é in some chat-plugins commands. 2015-06-12 15:03:20 -06:00
Bryan AA
7ac227cf26 Escape é in some commands 2015-06-12 13:00:45 -06:00
Ivo Julca
f18eef39ca Fix Travis build 2015-06-12 03:41:22 -05:00
Bryan AA
32cc2da876 Escape é in /forums command 2015-06-11 14:20:27 -06:00
Bryan AA
38fcfc2fe8 Add /forums command 2015-06-10 14:34:09 -06:00
kubetz
f574758ee6 Remove 'FE' parameter from dexsearch help 2015-06-10 01:16:55 +00:00
Guangcong Luo
d46ada6777 Merge pull request #1934 from SolarisFox/patch-5
standardize "Pokémon" in .md files
2015-06-10 00:36:27 +00:00
SolarisFox
7ed407dfd3 standardize "Pokémon" in .md files 2015-06-09 17:21:23 -07:00
AustinXII
d52de2ca25 Add what requirements are needed to use some jeopardy commands
the only commands that regular people can't use are /end /create and /start so I specified that in the /help
2015-06-08 21:10:04 -06:00
The Immortal
42a56a08bf Add Smogon Triples viability ranking to /om 2015-06-07 17:02:11 +04:00
Guangcong Luo
9820ca1775 Remove /spammode
It's useless without corresponding config.js changes, so it
doesn't really belong as a default command. Maybe it should be
added to COMMANDS.md, though.
2015-06-06 14:02:51 -04:00
The Immortal
21bb586608 Add old gens to /tiers 2015-06-06 16:35:22 +04:00
The Immortal
3ed7e06f06 Add VGC to /tiers 2015-06-06 03:19:23 +04:00
The Immortal
22670f97ab Add description for OM: Averagemons 2015-06-01 21:15:05 +04:00
The Immortal
17536b9db4 Update OMs
- Updated /om omotm
- Moved Averagemons to OM of the Month
- Moved Battle Factory above CAP
- Remove Middle Cup
- Add 2v2 Doubles as a challenge format
2015-06-01 19:35:29 +04:00
The Immortal
3cdf886d6f Remove Classic Hackmons 2015-05-25 13:08:57 +04:00
The Immortal
b2d4109a0c Update AAA viability ranking thread 2015-05-25 00:59:25 +04:00
The Immortal
4a6d128e2f Add Inverse Battle Viability Ranking to /om 2015-05-24 12:38:11 +04:00
Juanma Serrano
1164bd7710 Add DOU suspect test 2015-05-22 10:37:59 +02:00
The Immortal
32e263a66f Add RU suspect test 2015-05-22 12:33:23 +04:00
The Immortal
615c7cb70d Update /tiers UU 2015-05-21 09:35:19 +04:00
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
Morfent
882e9369f2 Chat plugins: AotD and Trivia bug fixes
- Remove question sorting on loading the Trivia plugin, since it is no
  longer required
- Trivia game winners are chosen based on who answers first, not who
  signs up first
- The Artist of the Day is no longer always the first artist to be
  submitted
- Replace instances of foo > -1 with foo >= 0
2015-05-18 18:38:29 -03:00
Ivo Julca
b69bbb48c1 Improve /dice
- Input validation: disallow negative, zero, and non-integer quantities where meaningless. Also disallow unsafe numbers to enforce a uniform distribution of rolls.
- Support AdX+B, AdX-B, AdX-L and AdX-H dice notations.
2015-05-17 14:25:52 -05:00
Guangcong Luo
130d52ca56 Merge pull request #1886 from SolarisFox/patch-4
/details: gen information
2015-05-17 18:19:47 +00:00
codelegend
70bb292404 fix /advlearn to use proper mod format 2015-05-17 18:16:11 +05:30
SolarisFox
585304e5ef /details: gen information 2015-05-16 19:31:18 -07:00
Guangcong Luo
ce9f21eebe Update /ipsearch
Now searches hosts and has a help entry.
2015-05-15 17:06:06 -04:00
Konrad Borowski
a32170dda3 Update RU viability ranking link in /tiers 2015-05-15 15:56:50 +02:00
The Immortal
d9caa0d53a Update /tiers 2015-05-15 00:10:13 +04:00
Ivo Julca
e8e50e7cc6 Strip style attributes from /seasonaldata output
They are removed by the client sanitizer
2015-05-13 18:51:57 -05:00
Juanma Serrano
a38692a937 Seasonal: Balance patch
Slow Down now also reduces damage done by 15%.
Add a new full defensive moveset for Tanks.
Change Evasion for new move, Sacred Shield, for support.
Add an extra moveset for support.
Update information.
2015-05-11 10:30:58 +02:00
Juanma Serrano
29fb143ade Fix crash in seasonaldata command 2015-05-06 13:03:43 +02:00
Juanma Serrano
2863d6d810 Seasonal: Nerf Mutilate
Make its base power just 27 so you're forced to cause bleed/poison.
2015-05-06 10:30:45 +02:00
Morfent
062f56ddd2 Chat plugins: mute/lock checks, add remaining help docs...
Letting users that can't talk use the more important commands is fine
and all, until they find a way to spam with them.

- Remove redundant this.canBroadcast call in /aotd
- The response after changing the Quote of the Day uses the proper
  broadcast style
- /aotd viewnoms sorts the prenomination list
- /trivia qs acknowledges that Video Games is a category
- Change suggestions to use the deprecated /trivia help command to /help
  trivia
- Add style fixes used in the Trivia to the The Happy Place and The Studio
  plugins
2015-05-05 22:43:33 -03:00
Juanma Serrano
a924acdb70 Seasonal: balance patch
Nerf slightly spread moves.
Make all Pokémon more resilient to damage.
Add EVs to make each Pokémon flavour unique to its character.
Randomise damage slightly more.
Eliminate all immunities.
2015-05-05 11:38:18 +02:00
Guangcong Luo
10a6911d43 Merge pull request #1860 from Rhythms88/master
Seasonal: Changes
2015-05-04 20:12:06 +00:00
Rhythms
4af47e44a7 Seasonal: Changes
- add an alias for /seasonaldata
- add a check in /seasonaldata if there is no target
- change quotes in formats.js and add the same alias
- fix some missed instances of followe
2015-05-04 13:28:53 -06:00
Joimer
8bb5e54ecc Fix typos in Seasonal 2015-05-04 21:15:21 +02:00
Juanma Serrano
f86810d7dc Seasonal: Improve info command and remove immunity
Immunity seems to be overpowered after watching a tournament.
2015-05-04 13:11:16 -05:00
Juanma Serrano
43df4684f2 Implement new Seasonal, You are (not) prepared
More information: http://www.smogon.com/forums/threads/3491902/page-12#post-6202283
Seasonal finally uses a mod. This is for several reasons:
1. The formats were getting too extensive in formats.js, making it difficult to work with that file.
2. This allows to meet expectations of users who want better and more varying seasonals each month.
3. This allows for extra modification, making Seasonals more and more different and exciting.
4. This allows to test the limits of PS mod system.
2015-05-04 13:10:28 -05:00
SolarisFox
99853a85a1 update help entries: /ds and /ms 2015-05-03 22:22:58 -07:00
Rhythms
110a0a2a91 Add a reply if there is no target in /data 2015-05-02 23:21:32 -06:00
Quite Quiet
910e30aa55 Add LC Ubers to search categories 2015-05-01 21:10:23 +02:00
The Immortal
6e5960a26b Update /om 2015-04-30 18:41:18 +04:00
Guangcong Luo
9e039072f3 Merge pull request #1836 from Morfent/trivia
Trivia plugin: add /help docs, more style fixes
2015-04-29 03:41:24 +00:00
Morfent
69be1d638b Trivia plugin: add /help docs, more style fixes
- Fix style on multiline strings
- Use double quotes for HTML
- Fix remaining bugs in trivia submission from bee3a73
2015-04-28 19:41:05 -03:00
Guangcong Luo
662902d8c0 Merge pull request #1825 from SolarisFox/patch-6
Improved /weak targeting
2015-04-28 19:00:59 +00:00
Konrad Borowski
4efd2ce60d Ignore status moves from /coverage
This makes it easier to put an entire moveset into a command without
having to worry about status moves being counted as real moves.
2015-04-28 09:40:54 +02:00
SolarisFox
d81e38880d Improved /weak targeting 2015-04-27 22:38:38 -07:00
Guangcong Luo
efee391072 Merge pull request #1832 from SolarisFox/patch-4
Grey font for 'None' with /weak
2015-04-28 05:12:04 +00:00
Guangcong Luo
ebee51f87e Merge pull request #1829 from SolarisFox/patch-5
Add snatch, gravity and mirror flag to /dt
2015-04-28 05:11:48 +00:00
SolarisFox
110aab9e7c Grey font for 'None' with /weak 2015-04-27 16:07:10 -07:00
SolarisFox
734475b96b Add snatch, gravity and mirror flag to /dt 2015-04-27 16:01:02 -07:00
Guangcong Luo
afb3549176 Merge pull request #1824 from SolarisFox/patch-4
add /coverage
2015-04-27 09:15:40 +00:00
SolarisFox
c031ac6bd2 add /coverage 2015-04-27 00:42:37 -07:00
Ivo Julca
00f6c0faf7 Style fixes 2015-04-26 00:26:13 -05:00
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