175 Commits

Author SHA1 Message Date
Sanqui
8482a5e493 Join the display name on IRC side with zero width spaces 2017-02-26 13:00:49 -08:00
Fiaxhs
2f59cbe2ef Implemented webhooks with matching avatars 2017-02-24 16:43:37 +01:00
mraof
b6f53cb241 Apparently there were trailing spaces 2017-02-17 00:52:07 -05:00
mraof
17d27293ef Update bot.js 2017-02-17 00:05:18 -05:00
mraof
b4aef61c79 Fixed errors CI listed 2017-02-03 19:09:06 -05:00
mraof
de8aa80b86 Support using discord channel ids 2017-02-03 19:02:37 -05:00
Doppins
d69884e703 [Doppins] Upgrade dependency discord.js to 11.0.0 (#173)
* Upgrade dependency discord.js to 11.0.0

* Fix discord.js 11 breaking changes
2017-01-10 16:21:47 -05:00
Martin Ek
38e4d3b818 Log info events upon connection, instead of debug 2016-12-08 23:33:28 -05:00
Martin Ek
8a6935c2e5 Listen to warn and debug events from discord 2016-12-08 23:32:31 -05:00
Christina Korosec
bb5b9a8719 Mentioning by guild nickname (#147)
* resolves reactiflux/discord-irc#63 nicknames

Use per server nickname instead of username.

* Fix whitespace

* Make server-nicknames pass testing

* Make server-nicknames pass testing (reverted from commit 89da7e09d499e3012416d489bc0a27149f7896c5)

* Stub server.detailsOfUser(username) for tests

* WIP - fix nickname mentions

Not tested yet since I'm not on my development machine

* createServerStub as arrow function

* User mentions from Discord to IRC should also use nicknames

* Allow mentions using server nicknames from IRC

* Yet another mention symbol.

I should consider using a regex at this point... but hotfix

* Correct merge mistakes

* FOSS-1 make nickname mentions work with new API version

* FOSS-1 mention by server-nickname fixed & tests fixed

* FOSS-1 add a test for server nickname mentions

* Test nickname != username when trying to mention by username

Test to make sure you can't mention someone by username if their nickname differs

* Refactor nickname mention code for readability
2016-11-14 12:31:28 -05:00
dlacewell
c3881be0bb Send text messages only to text discord channels 2016-11-02 23:00:56 -04:00
William Jackson
2fd870fc1b Remove unused variable 2016-11-01 14:29:29 -05:00
William Jackson
7b934e5319 Use nickname, not username, in command prelude 2016-11-01 13:05:15 -05:00
Martin Ek
6f0244949a Make sure attachments are posted to IRC, fixes #141 2016-10-21 00:14:34 -04:00
Martin Ek
44849df01b Update server nickname code to discord.js v9 2016-10-09 21:04:41 -04:00
Martin Ek
11fd54d76d Simplify server nick logic 2016-10-09 20:43:24 -04:00
Christina Korosec
8ea0cbd7bb Make server-nicknames pass testing (reverted from commit 89da7e09d499e3012416d489bc0a27149f7896c5) 2016-10-09 20:41:36 -04:00
Christina Korosec
80e2958329 Make server-nicknames pass testing 2016-10-09 20:41:36 -04:00
Christina Korosec
ed2da6f9f6 Fix whitespace 2016-10-09 20:41:36 -04:00
Christina Korosec
29432c35e1 resolves reactiflux/discord-irc#63 nicknames
Use per server nickname instead of username.
2016-10-09 20:41:36 -04:00
Jacob
633b490b23 Display custom emoji's nicely in IRC (#123)
* Display custom emoji's nicely in IRC

* add test for discord emotes

* fix spacing
2016-10-02 19:36:13 -04:00
Martin Ek
9e05344374 Migrate to discord.js v9.3 2016-09-25 21:16:28 -04:00
Martin Ek
483798cd54 Use airbnb directly and fix lint errors 2016-09-25 20:36:26 -04:00
Martin Ek
64e515e866 Use discord.js#indev-old
This reverts commit 48a4781cbaecad45cad9c83b95381171b58332cd.
2016-09-09 14:32:18 -04:00
Martin Ek
48a4781cba Prepend bot tokens with 'Bot', fixes #110 2016-09-09 00:43:28 -04:00
GinjaNinja32
bdfe3affcc Fix pings to users with nicknames showing as raw user IDs in IRC (#81)
* Fix pings to users with nicknames showing as raw user IDs in IRC

* Add test for user nickname mentions
2016-06-29 09:15:20 +02:00
Benjamin Hoffmeyer
59d42e18af Use Discord's Bot Token instead of email/password (#61)
* Convert discordemail to token

* Update fixtures with new format

* Update README with instructions for making a discord bot.

* Update the stub to loginWithToken
Now I know why they are there.

* Remove the npm run build line
Its no longer needed since npm install calls npm build

* Forgot a qoute in the sample config -_-

* I didn't change all fixtures to use loginWithToken
2016-05-06 16:40:04 +02:00
Martin Ek
b295e494b3 Enable auto reconnect for IRC and Discord 2016-04-21 04:42:37 +02:00
Henry Heikkinen
f75dd5c213 Send attachment URL as a simple message 2016-04-04 19:22:18 +00:00
Henry Heikkinen
36fd4c6ddf Prevent sending empty messages when attachment is sent without text message 2016-04-04 19:21:30 +00:00
Henry Heikkinen
6b65b87c52 Fix sending messages with both text message and attachments to IRC 2016-04-04 19:20:22 +00:00
Martin Ek
581830c22d Add test for ircNickColor 2016-04-04 13:38:29 +02:00
Bryce
9b81a7e930 Added option to disable irc username color 2016-04-04 13:35:11 +02:00
Henry Heikkinen
94032d268d Mention discord users in messages sent from IRC 2016-02-18 17:48:28 +02:00
Henry Heikkinen
4ee1ca291d Log different debug messages for attachments and text messages 2016-02-04 17:34:06 +02:00
Henry Heikkinen
fecdd59a31 Send more user friendly message about Discord attachments 2016-02-04 17:34:06 +02:00
Henry Heikkinen
a9e7f16329 Assume Discord messages contain either attachments or text message but not both 2016-02-04 17:34:03 +02:00
Henry Heikkinen
6cddcdb53f Print debug messages when sending attachment links 2016-02-04 11:19:20 +02:00
Henry Heikkinen
3063a7f43a Prevent sending empty messages to IRC 2016-02-04 11:14:39 +02:00
Henry Heikkinen
fdccdeee95 Send attachment urls to IRC 2016-02-04 11:14:35 +02:00
ekmartin
35c9b445e5 Update dependencies (Babel 6 etc.) 2016-01-23 20:37:29 +01:00
ekmartin
a338d430fb Upgrade to v5 of discord.js, fixes #17 2015-12-22 00:53:01 +01:00
ekmartin
94672e793d Move nick colors out of bot 2015-11-11 16:55:24 +01:00
Temeez
e448a694f5 Added IRC nick colors
This greatly increases the readability in IRC channels (at least when using irssi). "npm run coverage" could still fail, couldn't get it to work for some magical reason.
2015-11-11 11:08:07 +02:00
ekmartin
9085bc5364 Rewrite to ES6 using Babel 2015-10-28 15:24:01 +01:00
ekmartin
a13dafdb5b Update changelog and readme 2015-10-28 03:44:09 +01:00
ekmartin
499eeec5a0 Fix all the tests 2015-10-28 03:37:33 +01:00
ekmartin
1fba95a5f7 Fix Discord -> IRC commands 2015-10-28 03:10:07 +01:00
ekmartin
d695c1aa44 Correctly parse mentions of users and channels 2015-10-28 02:38:34 +01:00
ekmartin
fce056da1b Initial Discord implementation 2015-10-13 01:54:52 +02:00