Commit graph

469 commits

Author SHA1 Message Date
Amish Shah
a122f0994e Stuff 2015-12-13 20:10:33 +00:00
abalabahaha
ecc604e6ac Fixed getChannelLogs bug (template string variable without ${}) 2015-12-13 02:00:01 -08:00
Amish Shah
c9c1b19968 Fixed message.isMentioned 2015-12-12 21:37:34 +00:00
Amish Shah
c2cf1badfd Fixed multiple avconvs/ffmpeg processes still staying alive 2015-12-12 21:04:30 +00:00
Amish Shah
4d43867206 Fixed multiple ffmpeg/avconv processes being alive 2015-12-12 18:04:48 +00:00
Amish Shah
d66b765933 added volume control 2015-12-12 17:52:25 +00:00
Amish Shah
8eb4c47f79 Client now emits unknown and hidden some properties of Cache
Cache.discrim and Cache.discrimCache are now hidden from for..in
2015-12-12 17:32:20 +00:00
Amish Shah
cb58bc5414 Build changes & minor changes to Cache 2015-12-12 17:31:28 +00:00
abalabahaha
cd4a70cfb2 Fixed the fix and built 2015-12-11 21:37:59 -08:00
abalabahaha
6ed6932e24 Someone forgot to update some code 2015-12-11 20:00:49 -08:00
abalabahaha
e020287307 Applied change to second function 2015-12-11 20:00:32 -08:00
qeled
f280349f0c Fix sequence and timestamp in VoiceConnection 2015-12-11 19:48:32 +00:00
qeled
d8af1a49ae Disable ffmpeg logging and ignore stderr 2015-12-11 19:48:32 +00:00
Simon Schick
506b425ca0 Simplified code segment, removed pointless concat call. 2015-12-11 19:48:31 +00:00
Simon Schick
1a93f8638e Forgot to expose userAgent is base client 2015-12-11 19:48:31 +00:00
Simon Schick
002d8ce0af Moved all http request related code into method to allow override of useragent, removed superagent end detour 2015-12-11 19:48:31 +00:00
Guichaguri
78eeee084f Added user-agent with discord.js information
Requested by the Discord Team
2015-12-11 19:48:31 +00:00
qeled
a369ef2788 Improve Cache class performance
Use hashmap instead of array for caching by discriminator

Optimize `get` method by using `for` loop instead of `forEach`
and returning hashmap cache for queries by discriminator
2015-12-10 02:26:30 +03:00
Amish Shah
a789b1f396 reply no longer mentions in PM
for much more fluent conversations in PM
2015-12-09 18:56:20 +00:00
Amish Shah
d9b9d1d0a3 build changes and fix presence bug 2015-12-09 18:26:25 +00:00
Simon Schick
f9b3369187 Simplification 2015-12-08 17:49:35 +01:00
Amish Shah
6cff34ae3c try again 2015-12-06 21:02:24 +00:00
Amish Shah
ff7adf1cf7 basic speed improvement - eats more memory 2015-12-06 20:53:23 +00:00
Amish Shah
b59f2940e3 finalised revive 2015-12-06 20:19:30 +00:00
Amish Shah
d504406cfc partially working autorevive 2015-12-06 19:30:32 +00:00
Amish Shah
41efef750f Clarified options and added autoRevive option
Useful when investigating potential option parameters
2015-12-06 19:11:59 +00:00
Amish Shah
706682af55 fixed voice intervals not dying, bot will now fully die on close 2015-12-06 19:07:34 +00:00
Amish Shah
e072c58460 added interval fixes - bots die gracefully now 2015-12-06 19:02:10 +00:00
abalabahaha
d3e0f46ff0 Merge remote-tracking branch 'upstream/indev' into indev 2015-12-05 16:57:13 -08:00
abalabahaha
2157e0b682 Saddening typo 2015-12-05 16:56:53 -08:00
Amish Shah
e16211c4fb Added stereo support 2015-12-05 21:19:38 +00:00
Amish Shah
d122184b6b voice fixes 2015-12-05 20:57:23 +00:00
abalabahaha
de19475ae0 Attempted add/remove from roles 2015-12-05 12:13:24 -08:00
abalabahaha
50646503cd Merge remote-tracking branch 'upstream/indev' into indev 2015-12-05 10:31:29 -08:00
abalabahaha
ccc794229e setChannelPosition 2015-12-05 10:29:12 -08:00
Amish Shah
1d8905d25a Finalised server documentation
I think
2015-12-05 18:17:01 +00:00
abalabahaha
a89938ed01 setChannelTopic, not setTopic 2015-12-05 10:04:00 -08:00
abalabahaha
e92e087aeb Fixed stupid weird code 2015-12-05 09:59:25 -08:00
abalabahaha
559ed5f76f More shortcuts 2015-12-05 09:43:11 -08:00
Amish Shah
eb500ecd24 Added startTyping stopTyping and createChannel 2015-12-05 17:21:32 +00:00
Amish Shah
10442e5634 Added getLogs 2015-12-05 17:12:15 +00:00
Amish Shah
212c672c2f Added sendFile and server.generalChannel 2015-12-05 17:10:48 +00:00
Amish Shah
05409ccc21 Finished server shortcuts
I think
2015-12-05 17:08:56 +00:00
Amish Shah
780565ff68 Added shortcuts to user and server classes
User.addTo User.removeFrom Server.leave/delete Server.createInvite Server.createRole
2015-12-05 17:03:05 +00:00
Amish Shah
5a971ba097 Added role shortcuts and to user also 2015-12-05 16:57:58 +00:00
Amish Shah
f95822dcb7 Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS 2015-12-05 16:48:09 +00:00
Ch. König
01a640feec Fixes server being null on serverCreated event 2015-12-05 12:54:16 +01:00
Amish Shah
e01b4eb114 v5.1.0 finalised bug fixes 2015-12-04 21:07:15 +00:00
Amish Shah
ac2398e47c started working on bug fixes and test scripts 2015-12-04 20:30:11 +00:00
abalabahaha
3c0687ac95 Merge pull request #75 from SimonSchick/resolvererrors
Resolvererrors
2015-11-28 16:40:25 -08:00
Simon Schick
6934068c7f Removed redudant catch/throw operations as the error message is now actually useful 2015-11-28 23:03:15 +01:00
Simon Schick
4735c85e1b Cleaned up file control structures, no more else if chains when you can return right away, also more describtive errors 2015-11-28 22:59:35 +01:00
Simon Schick
687970a3ec Prevent error when trying to close stream by assuming all streams have end/destroy methods 2015-11-28 22:19:17 +01:00
Simon Schick
4c30890626 Fixed accidental prototype duplicate 2015-11-28 18:56:13 +01:00
Simon Schick
faa744b1e3 Use import/export since we are using babel, removed unused imports 2015-11-28 17:57:22 +01:00
abalabahaha
47b6f6cadd Merge pull request #68 from SimonSchick/streamfix
Potential fix for streams not terminating
2015-11-27 10:52:12 -08:00
Simon Schick
df7590c105 Potential fix for streams not terminating 2015-11-27 19:37:03 +01:00
Simon Schick
87dbfcd7ed make use of qs instead of manually building querystring
promise simplification and optimisation
use Array.map instead of forEach for mapping
added missing rethrows
emit error events in typing
removed unusued EventEmitter import
no braces for single arg arrow function
added missing semicolons
2015-11-24 21:58:28 +01:00
Simon Schick
fd54dc4f1f Fixed stack overflow in removeUserFromRole, removed redudant argument grouping, removed redudant error callback wrap 2015-11-24 03:27:56 +01:00
Simon Schick
0b1a165139 Prevent error swallowing 2015-11-24 03:21:56 +01:00
Simon Schick
db5b333085 Forgot some return statements 2015-11-24 03:10:06 +01:00
Simon Schick
bcbcc1e95d Slightly reduced promise bloat 2015-11-24 02:59:26 +01:00
Simon Schick
c801dcff2b fixed rejecting promise invoking callbacks
reduces unneeded promise wrap
fixed cases where the first argument is callback was set despite success
added missing returns in awaitResponse
made defaults arrow functions, and commented out their defaults to prevent unsused vars
added missing returns for status functions
2015-11-24 02:48:05 +01:00
abalabahaha
8cb912090f Don't overwrite permissions in updateRole if they aren't passed 2015-11-22 20:25:52 -08:00
abalabahaha
014d78638e messageDeleted passes channel 2015-11-22 17:49:23 -08:00
abalabahaha
c9497a0f75 Emit -ed and fixed presence vs. userUpdated check 2015-11-22 17:15:49 -08:00
Amish Shah
41cd3f0ce1 Fixed bug where banning would not work 2015-11-22 15:32:14 +00:00
Amish Shah
b22995f254 Built src again using the correct preset 2015-11-22 15:12:39 +00:00
hydrabolt
cf33df18cf Simplified awaitResponse 2015-11-21 21:25:28 +00:00
hydrabolt
d916e5719b Fixed awaiting 2015-11-21 20:59:33 +00:00
hydrabolt
ddfed4da6c Added awaiting internally 2015-11-21 20:50:58 +00:00
hydrabolt
4ba90f36fe Added cache.random() and node engine to package.json 2015-11-21 18:35:51 +00:00
hydrabolt
08544d3cd5 Documented new additions 2015-11-21 15:07:32 +00:00
hydrabolt
65698cf525 Added new functions
setStatusIdle() - aliases setStatusAway
setStatusOnline() - aliases setStatusActive and setStatusHere

setPlayingGame() - uses GameID resolvable
2015-11-21 14:55:15 +00:00
abalabahaha
0ba7a1796e msg.sender is an alias to msg.author 2015-11-20 17:17:25 -08:00
hydrabolt
409635d50a v5.0.0! Woo! 2015-11-20 22:12:02 +00:00
hydrabolt
979909a570 Added message docs 2015-11-20 20:54:59 +00:00
hydrabolt
19fb8e6dfd Finished channels 2015-11-20 20:44:09 +00:00
hydrabolt
10ea6a9336 Documented Cache 2015-11-20 16:36:32 +00:00
hydrabolt
2d04728edc Finalised event documentation for Client 2015-11-20 16:24:38 +00:00
hydrabolt
8ae123c67e Merge remote-tracking branch 'refs/remotes/origin/rewrite' into rewrite-docs 2015-11-19 20:51:50 +00:00
hydrabolt
09d0e225c9 More docs 2015-11-19 20:34:05 +00:00
hydrabolt
7deb431fdf More docs 2015-11-19 20:22:46 +00:00
abalabahaha
224cca1e31 updateRole and deleteInvite 2015-11-19 09:40:15 -08:00
hydrabolt
e08c10507d Added setAvatar 2015-11-19 16:52:01 +00:00
hydrabolt
e486ad1a79 Added updateDetails and setUsername 2015-11-19 16:46:23 +00:00
hydrabolt
d70f66abfd Fixed resolver rejection for callbacks
potentially could cause some code to crash if using callbacks instead of
promises
2015-11-19 16:34:42 +00:00
hydrabolt
c74b5dbd3f Added startTyping stopTyping and added serverchannel.mention() 2015-11-19 16:33:25 +00:00
hydrabolt
0fdcf827d0 serverchannel.toString() now returns mentionable 2015-11-19 16:18:02 +00:00
hydrabolt
881615f15e Fixed isMentioned 2015-11-18 17:28:53 +00:00
hydrabolt
6bca494ddc Added msg.isMentioned 2015-11-18 17:24:15 +00:00
hydrabolt
c342ca4116 Added joinServer 2015-11-18 17:13:06 +00:00
hydrabolt
7b73671295 Added the joinServer funciton internally 2015-11-18 16:45:37 +00:00
abalabahaha
cfc1424dde Merge remote-tracking branch 'upstream/rewrite' into rewrite 2015-11-15 12:47:43 -08:00
abalabahaha
7af104a892 sendTyping, setStatus, and channel position 2015-11-15 12:46:52 -08:00
hydrabolt
373358cf49 Fixed update to updateMessage 2015-11-15 14:32:59 +00:00
hydrabolt
a5581382b9 Added message deregs 2015-11-15 14:31:03 +00:00
hydrabolt
8a3c99fdd2 Fixed bad reg 2015-11-15 14:28:32 +00:00
hydrabolt
de36e8c9d8 Fixed bad reg 2015-11-15 14:28:24 +00:00
hydrabolt
f1bde8a98a Semantically correct 2015-11-15 14:26:30 +00:00
hydrabolt
fbd922e557 More things 2015-11-15 14:21:22 +00:00
hydrabolt
68ac437ef0 Fixed channel.delete() 2015-11-15 13:57:51 +00:00
hydrabolt
083244f744 Added channel.delete() 2015-11-15 13:55:29 +00:00
hydrabolt
4973412439 Added message acknowledging 2015-11-15 13:32:01 +00:00
hydrabolt
9ad55668a1 Removed pointless destroy console.log 2015-11-13 22:56:43 +00:00
hydrabolt
a09505a05d Fixed getBans 2015-11-12 21:44:04 +00:00
hydrabolt
00fd78f949 Fixed bugs from PR 2015-11-12 21:01:41 +00:00
abalabahaha
db7da87cb4 Fixed unbanMember and added getBans 2015-11-11 22:46:24 -08:00
abalabahaha
3e37c5d91f Removed trailing spaces, added unbanMember and kickMember 2015-11-11 18:36:24 -08:00
hydrabolt
bb716480b1 Fixed leaving voice channels 2015-11-09 18:34:03 +00:00
hydrabolt
a9173ec776 Fixed playingFiles 2015-11-08 21:32:44 +00:00
hydrabolt
4081bf8d2d Fixed bad error error
ironic isn't it
2015-11-08 21:03:45 +00:00
hydrabolt
82206e75b6 Stopped audio encoder outputting directly 2015-11-08 20:51:29 +00:00
hydrabolt
18e35d82e1 Client can now receive PM messages properly 2015-11-08 20:46:20 +00:00
hydrabolt
a36bc226fd Fixed something that may break later 2015-11-08 20:43:20 +00:00
hydrabolt
821c12f82c Reformatted internals 2015-11-08 20:40:18 +00:00
hydrabolt
ad536445d9 Fixed ffmpeg/avconv confusions 2015-11-08 16:40:40 +00:00
hydrabolt
36e40d1b35 Fixed order 2015-11-08 16:31:33 +00:00
hydrabolt
71786148bc Added playStream and renamed some functions 2015-11-08 12:55:10 +00:00
hydrabolt
639fc99b86 Temporary fix 2015-11-08 12:41:39 +00:00
hydrabolt
30f02e77c4 playing stream 2015-11-08 12:34:59 +00:00
hydrabolt
a1e92dff5c Made opus truly optional 2015-11-08 10:55:57 +00:00
hydrabolt
c5fe16af5b Fixed switching voice channels 2015-11-08 10:45:49 +00:00
hydrabolt
04c3dbedac Fixed memory leaks 2015-11-08 10:09:49 +00:00
hydrabolt
99a63db142 Gave a reason why mono is used 2015-11-07 22:34:39 +00:00
hydrabolt
e90a1a4ed6 Credited izy 2015-11-07 22:15:04 +00:00
hydrabolt
0dfc747b1b Basic fixes, added test script 2015-11-07 22:02:33 +00:00
hydrabolt
67d5f9d63e Updated index.js to not run 2015-11-07 21:39:32 +00:00
hydrabolt
f5640fa5d0 Added opus as an optional 2015-11-07 21:36:43 +00:00
hydrabolt
48c3770caf Fixed process removing 2015-11-07 21:33:38 +00:00
hydrabolt
2e43117500 Updated voice connection 2015-11-07 21:25:52 +00:00
hydrabolt
ae75c49621 Minor fixes 2015-11-07 21:24:56 +00:00
hydrabolt
fc31df3fcf Tidy up of code 2015-11-07 18:57:23 +00:00
hydrabolt
af8da5b0a2 Optimisations 2015-11-07 18:39:22 +00:00
hydrabolt
be1f5064c2 AWESOME MAGIC 2015-11-07 17:21:05 +00:00
hydrabolt
4bab0a6bbc Bad wav support 2015-11-07 14:45:45 +00:00
hydrabolt
ab3cdf8a39 Voice now properly joins 2015-11-06 21:53:45 +00:00
hydrabolt
4118252ace Fixed smallish bugs 2015-11-06 21:36:58 +00:00
hydrabolt
cb5452f072 Added rudimentary voice joining 2015-11-06 21:26:36 +00:00
hydrabolt
bd0228bc71 Started basic work on voice 2015-11-06 20:46:11 +00:00
hydrabolt
ac3608feb4 more channel features 2015-11-06 20:36:35 +00:00
hydrabolt
98a62eb94e Added setTopic implementation 2015-11-06 20:07:28 +00:00
hydrabolt
81a8771063 Updated overwritePermissions function 2015-11-06 20:00:34 +00:00
hydrabolt
73e0c1683b Added overwrite shortcut 2015-11-05 20:02:34 +00:00
hydrabolt
5dfe7cbf79 Fixed invite 2015-11-05 18:44:07 +00:00
hydrabolt
f6dfea5abd Added createInvite 2015-11-05 18:39:02 +00:00
hydrabolt
164e6b1b7e Added addMemberToRole 2015-11-05 17:52:21 +00:00
hydrabolt
e54da00282 added createRole, updateRole and deleteRole 2015-11-05 17:37:27 +00:00
hydrabolt
ca6f582853 Added banMember method 2015-11-02 17:43:44 +00:00
hydrabolt
0629b9c06d Sets the client's user 2015-11-02 17:34:50 +00:00