Commit graph

152 commits

Author SHA1 Message Date
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