Commit Graph

56 Commits

Author SHA1 Message Date
Crawl
ac92d2cecc Improve docs a bit 2017-04-30 04:30:44 +02:00
Amish Shah
eec79b5fd0 Increase WebSocket backoff time to alleviate reconnect issues 2017-04-22 21:16:58 +01:00
Schuyler Cebulskie
7232531eb1 Move all util methods into class
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
bdistin
4d2153c7c6 Document ShardingManager#message (#1024)
* Document ShardingManager#message

* Update Shard.js
2016-12-27 22:44:17 -05:00
Schuyler Cebulskie
a0de75f290 Improve ShardClientUtil warnings/errors 2016-12-07 00:30:36 -05:00
Schuyler Cebulskie
90304aa7d6 Fix loads of JSDoc type issues 2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
305070dded Remove experimental warning on sharding manager 2016-11-12 17:30:07 -05:00
Schuyler Cebulskie
60e0d507f0 Clean up nearly all promises to utilise chaining, other small fixes 2016-10-30 16:27:28 -04:00
Schuyler Cebulskie
8306d50bd8 Clean up a bunch of promise stuff 2016-10-30 12:47:17 -04:00
Schuyler Cebulskie
ecee07655f Simplify Shard.env 2016-10-26 15:31:05 -04:00
Amish Shah
1a3ea65abd fix some shard stuff on linux 2016-10-26 20:15:56 +01:00
Amish Shah
a2f125e416 case sensitive 2016-10-26 19:27:52 +01:00
Amish Shah
4a5cef0ccf Rename getRecommendedShards to fetchRecommendedShards 2016-10-26 17:29:23 +01:00
Gus Caplan
9f7c630796 lel (#824) 2016-10-22 14:51:21 -04:00
Schuyler Cebulskie
8f0e2e0c56 Make token "Bot" removal more lenient
In case of heavy user error. :)
2016-10-14 02:14:00 -04:00
Schuyler Cebulskie
e4636243b2 Improve token "Bot" removal 2016-10-14 02:11:31 -04:00
Schuyler Cebulskie
485ffd267e Remove auto shard spawn interval (Discord doesn't support such a great idea 👀) 2016-10-14 00:21:08 -04:00
Schuyler Cebulskie
915a4cbe37 Rename spawnArgs -> shardArgs 2016-10-14 00:00:15 -04:00
Schuyler Cebulskie
3293f9a8de Add automatic shard spawning, and document options 2016-10-13 23:58:32 -04:00
Schuyler Cebulskie
aad06c1116 Teensy cleanup 2016-10-13 23:32:52 -04:00
Gus Caplan
853a3dfa04 Add getRecommendedShards and automatic shard count in ShardingManager (#796)
* draft stuff

fix docstring for Client#token

Reorganise resolver

make env better for shards, clean up docs

Fix Gus' log messages

7

meh just gateway/bot not v7 :(

final changes, ready for mergin!

build docs

make default totalShards 'auto', fix docs for totalShards type

clean up docs more

run docs

* make consistancy real

* Update and rename getRecommendedShards.js to GetRecommendedShards.js

* Update GetRecommendedShards.js

* Update index.js

* Update RESTMethods.js

* Update Shard.js

* Update GetRecommendedShards.js

* Update ShardingManager.js

* run docs
2016-10-13 23:26:10 -04:00
Gus Caplan
0de3d1bfc4 make sharding manager constructor better (#794)
* add color stuff to support popular color libraries

* make this better

* fix docs
2016-10-11 20:20:59 -04:00
Schuyler Cebulskie
973dbe8266 Add more @readonly and clean up some stuff 2016-09-27 20:07:33 -04:00
Schuyler Cebulskie
ba8dd3467a Switch config back to camelCase 2016-09-27 18:42:32 -04:00
Schuyler Cebulskie
4fceae02d6 Fix ShardClientUtil.fetchClientValues example 2016-09-27 17:25:17 -04:00
Schuyler Cebulskie
49d905a7b1 Reorganise some shard logic 2016-09-27 17:23:03 -04:00
Schuyler Cebulskie
38366f627d Fix transmitting errors through IPC 2016-09-27 02:40:29 -04:00
Schuyler Cebulskie
9d3b7b49dd Cleanup and reorganise some shard stuff 2016-09-27 02:25:38 -04:00
Schuyler Cebulskie
e5a987e0ef Add client shard eval/client property fetching, and improve existing shard stuff 2016-09-27 02:19:53 -04:00
Schuyler Cebulskie
c26fc49caf Fix property fetching 2016-09-26 23:34:47 -04:00
Schuyler Cebulskie
4fe30aa4d3 Rip out client sharding logic into its own class 2016-09-26 23:23:56 -04:00
Schuyler Cebulskie
116e6bb4c8 Clean up totalShards default 2016-09-24 02:46:55 -04:00
Schuyler Cebulskie
d9bc5cea1e Small cleanups 2016-09-24 02:43:27 -04:00
Schuyler Cebulskie
13e2b923e8 Return existing promise instead of failing, mark 2 2016-09-24 02:29:15 -04:00
Schuyler Cebulskie
1008f601f4 Add shard client prop fetching, remove guild count fetching, improve eval 2016-09-24 02:12:45 -04:00
Schuyler Cebulskie
e4f416ae6c Add shard eval, broadcastEval, and fix fetchGuildCount response 2016-09-24 01:21:41 -04:00
Schuyler Cebulskie
65b93532ce Add additional shard count checks 2016-09-24 00:51:31 -04:00
Schuyler Cebulskie
5ea62e63ab Improve sharding some more 2016-09-24 00:44:47 -04:00
Gus Caplan
063be5cee2 smarter sharding™ (#732) 2016-09-23 21:43:16 +01:00
Gus Caplan
fc9d049cc1 make shardmanager better (#731)
* add respawn thing for shards, and make it easier to recieve messages from shards

* run docs
2016-09-23 18:36:14 +01:00
Schuyler Cebulskie
90f05a34cb Return the existing promise instead of erroring 2016-09-22 23:01:37 -04:00
Schuyler Cebulskie
7f652f7df8 Add delay param to ShardingManager.spawn 2016-09-22 22:51:58 -04:00
Schuyler Cebulskie
3fa4ff13e3 Add ShardingManager.fetchGuildCount 2016-09-22 22:48:21 -04:00
Schuyler Cebulskie
9d94fbfbcb Document and change launch event params 2016-09-22 22:06:56 -04:00
Schuyler Cebulskie
b795ed8109 Overhaul sharding broadcast/send 2016-09-22 22:03:10 -04:00
Gus Caplan
edd174a5eb Add ShardingManager#send and ShardingManager#broadcast (#730)
* add ShardingManager#send and ShardingManager#broadcast

* make gawdl3y happy

* Fix a thing
2016-09-22 21:35:08 -04:00
Schuyler Cebulskie
6a94658dd7 Clean up some stuff 2016-09-19 04:32:24 -04:00
Schuyler Cebulskie
47d71d32f3 Make grammer gooder 2016-09-11 01:40:37 -04:00
Schuyler Cebulskie
2c6b804fc9 Improve sharding stuff (#608)
* Improve sharding stuff

* Build docs
2016-09-04 22:02:52 +01:00
Amish Shah
0454674ceb document shard 2016-09-04 12:37:42 +01:00