Commit graph

140 commits

Author SHA1 Message Date
Yash Karandikar cb85a19b36 Filter out system messages. See all the pins. 2022-04-13 13:52:14 -05:00
Yash Karandikar 095bf438a1 Finalize channel mappings from IRC -> Discord 2022-04-07 14:40:45 -05:00
Yash Karandikar 6cef55ebc5 Follow channel mapping for IRC status notices 2022-04-07 14:17:17 -05:00
Yash Karandikar 9c1e384e0c Follow channel mapping on Discord -> IRC 2022-04-06 11:26:38 -05:00
Yash Karandikar bef05fa07c Add config option for channel mapping 2022-04-06 11:09:09 -05:00
Yash Karandikar 3fb3a0dadf Rustfmt 2022-04-04 11:37:55 -05:00
Yash Karandikar fa66176cec Separate prefixed messages from nickname portion 2022-04-04 11:36:22 -05:00
Yash Karandikar d15653287e Add raw_prefix option to Config 2022-04-04 11:35:26 -05:00
Yash Karandikar 5309789d9b Markdown is hard 2022-02-07 11:41:12 -06:00
Yash Karandikar 8ba5e0b579
Rustfmt 2022-02-05 13:12:23 -06:00
Yash Karandikar 43b2b8cab0
Only replace one formatting char at a time 2022-02-05 13:12:00 -06:00
Yash Karandikar 934941e2bb Preserve spaces before pings 2022-02-01 14:23:59 -06:00
Yash Karandikar 3ea6cf2127 Fix numbers in pings 2022-02-01 13:36:17 -06:00
Yash Karandikar 27c2944d33 Handle guild member updates 2022-01-31 08:50:12 -06:00
Yash Karandikar 2a9e9ee3bd Replace unicode ellipsis 2022-01-28 11:44:10 -06:00
Yash Karandikar 4bce3f9382 Put backticks around inline code 2022-01-28 11:02:08 -06:00
Yash Karandikar 78b02420fd Rustfmt 2022-01-27 11:14:14 -06:00
Yash Karandikar b25ec4de18 Rewrite ping parser on IRC -> Discord 2022-01-27 11:12:16 -06:00
Yash Karandikar c6c95fe591 Rewrite ping parser on Discord -> IRC 2022-01-27 10:59:59 -06:00
Yash Karandikar 1322814766 Fix wording 🐸 2022-01-26 13:26:04 -06:00
Yash Karandikar 8958cc6160 Fix build error 🐸 2022-01-26 13:22:54 -06:00
Yash Karandikar 5b9fe214be Change reply format 2022-01-26 13:18:52 -06:00
Yash Karandikar 377602a0da Show attachments of replied message 2022-01-26 13:18:12 -06:00
Yash Karandikar 6bae4ce33c Show "version number" when shutting down 2022-01-24 13:16:22 -06:00
Yash Karandikar a55a2a8ec3 Implement graceful shutdown 2022-01-24 11:38:14 -06:00
Yash Karandikar 29cdda85b6 Don't spawn the IRC loop 2022-01-24 11:18:00 -06:00
Yash Karandikar c42e10c084 Port the channel parser to non-webhook code 2022-01-24 11:13:42 -06:00
Yash Karandikar cfed812b0e
Parse discord role mentions 2022-01-23 19:09:31 -06:00
Yash Karandikar ffa8bb6f70
Rustfmt 2022-01-23 18:40:51 -06:00
Yash Karandikar aea6e7a3d7
Handle channels from IRC -> Discord 2022-01-23 18:37:37 -06:00
Yash Karandikar 3e59bfdca8
Handle channels from Discord -> IRC 2022-01-23 18:07:34 -06:00
Yash Karandikar 13cb669543
Handle NICK from IRC 2022-01-23 13:00:12 -06:00
Yash Karandikar be4c706403
Fix some warnings 2022-01-23 11:00:16 -06:00
Yash Karandikar 85c69ae433
Handle custom Discord emojis 2022-01-23 10:55:08 -06:00
Yash Karandikar 8cadcaf9a6
Use chars() instead of mapping bytes to chars 2022-01-23 10:39:28 -06:00
Yash Karandikar 5c9392d80b Show nick in replies 2022-01-21 13:50:30 -06:00
Yash Karandikar 1c63510077 Support partial mentions on IRC 2022-01-21 11:01:16 -06:00
Yash Karandikar 443036dfb9 Rustfmt 2022-01-21 10:05:06 -06:00
Yash Karandikar 058ac1677a Fix Discord -> IRC pings 2022-01-21 10:04:10 -06:00
Yash Karandikar 8ec501b8d6 Make newlines work again 2022-01-20 08:54:51 -06:00
Yash Karandikar 15c6c0bda8 Fix typo 2022-01-19 15:58:53 -06:00
Yash Karandikar 588096b233 Factor in the nickname 2022-01-19 15:57:42 -06:00
Yash Karandikar 70784017f6 Remove newlines in replies 2022-01-19 15:54:13 -06:00
Yash Karandikar da51f4636f Add support for replies 2022-01-19 15:40:48 -06:00
Yash Karandikar 7fe042f3c4 Use actual reset character instead of setting text to white 2022-01-19 10:54:26 -06:00
Yash Karandikar 332f72952d Rustfmt 2022-01-18 17:22:06 -06:00
Yash Karandikar 035a59db34 Port formatting to non-webhook code 2022-01-18 17:21:48 -06:00
Yash Karandikar be42406ef9 Formatting from IRC -> Discord 2022-01-18 17:20:50 -06:00
Yash Karandikar 21402aa859 Bridge discord formatting to IRC 2022-01-18 16:55:36 -06:00
Yash Karandikar 4e1e9ce86f Don't process pings if it's a codeblock 2022-01-18 10:58:54 -06:00
Yash Karandikar 5b06bcc90f Rustfmt 2022-01-18 09:48:41 -06:00
Yash Karandikar 91f95c795c Support codeblocks IRC -> Discord 2022-01-18 09:48:08 -06:00
Yash Karandikar f124ba75a5 Support codeblocks Discord -> IRC 2022-01-18 09:42:14 -06:00
Yash Karandikar 3173b90c24
Rustfmt 2022-01-16 19:04:15 -06:00
Yash Karandikar 73abc15f4c
Don't hardcode channels 2022-01-16 19:03:50 -06:00
Yash Karandikar 704f5ec0d6
Replace newlines with spaces 2022-01-16 18:58:06 -06:00
Yash Karandikar be2cca1807
Don't insert a ZWSP between each character 2022-01-16 18:54:57 -06:00
Yash Karandikar 9186d5dc9d
Split message into chunks 2022-01-15 15:51:54 -06:00
Yash Karandikar 3845c50d02
Actually fix it, sorry 2022-01-15 15:33:10 -06:00
Yash Karandikar 0da6c3b13f
Filter for specified channel id 2022-01-15 15:26:33 -06:00
Yash Karandikar bda2bc3e56
Try not escaping the x 2022-01-15 15:16:22 -06:00
Yash Karandikar 9b87536c09
Strip IRC control characters 2022-01-15 15:13:35 -06:00
Yash Karandikar 9657cb588d
Update member list when new member joins 2022-01-15 12:41:10 -06:00
Yash Karandikar f2dda30468
Rustfmt 2022-01-15 12:32:47 -06:00
Yash Karandikar 4284de2e71
Parse pings manually instead of using content_safe 2022-01-15 12:32:27 -06:00
Yash Karandikar a5fd0b1e31
Just cast as u8 2022-01-15 11:15:08 -06:00
Yash Karandikar 61f46d9e08 Clean mentions before sending to IRC 2022-01-07 11:48:45 -06:00
Yash Karandikar 66280535a6 Run rustfmt 2022-01-07 11:33:25 -06:00
Yash Karandikar aaf1697a52 Handle having multiple pings in a message 2022-01-07 11:31:52 -06:00
Yash Karandikar 2dc7e0ea22 Check for pings starting with @ 2022-01-06 13:49:41 -06:00
Yash Karandikar c59847007b Add support for alternative ping syntax 2022-01-06 13:32:17 -06:00
Yash Karandikar be5200daac Run rustfmt 2022-01-06 13:29:12 -06:00
Yash Karandikar 56ec41d29b Initial support for pinging discord users 2022-01-06 13:28:20 -06:00
Yash Karandikar abcf0aeddd Handle discord attachments 2022-01-05 13:26:35 -06:00
Yash Karandikar 1a2d639e3d Colour irc nicks and prevent parallel pings 2022-01-05 12:14:58 -06:00
Yash Karandikar 3e041b10ef
Allow IRC options to be configured with TOML 2022-01-04 17:05:45 -06:00
Yash Karandikar 7c8f8c8f6d
Run rustfmt 2022-01-03 15:20:03 -06:00
Yash Karandikar 3d50da90fb
Handle JOIN and PART/QUIT 2022-01-03 15:19:53 -06:00
Yash Karandikar b1ba36874f
Fetch and cache avatar URLs 2021-12-27 17:33:09 -06:00
Yash Karandikar ba2f57ad1b
Use a Result instead of expecting 2021-12-27 16:44:34 -06:00
Yash Karandikar 2bfa4e866a
Implement webhook support 2021-12-27 16:41:27 -06:00
Yash Karandikar 27e3cfbd98
Parse webhook URLs 2021-12-27 14:46:12 -06:00
Yash Karandikar f2f3d2aae5
Add initial toml support 2021-12-27 13:50:14 -06:00
Yash Karandikar b74e46ec97
Bridge Discord -> IRC 2021-12-27 13:28:59 -06:00
Yash Karandikar 6f195f7611
Create basic IRC loop 2021-12-27 11:24:50 -06:00
Yash Karandikar 81c2129a21
Don't respond to bots 2021-12-27 10:25:42 -06:00
Yash Karandikar 3e3e3540f1
don't respond to messages sent by us 2021-12-26 16:09:50 -06:00
Yash Karandikar e8d4b9adac
store Http and ChannelId globally 2021-12-26 15:35:49 -06:00
Yash Karandikar 3d3921cf04
Create basic echo bot 2021-12-26 15:13:09 -06:00
Yash Karandikar f59328bd22
Initial commit 2021-12-26 14:04:47 -06:00