Commit graph

155 commits

Author SHA1 Message Date
11bb32d53e Convert ParsedPacket into Data 2025-02-23 22:35:55 +01:00
28c1ce243e Add client connection 2025-02-23 22:35:55 +01:00
45f2c64c8e Model client connection state 2025-02-23 22:35:55 +01:00
fc9364e0c6 Move error to separate file 2025-02-23 22:35:55 +01:00
d5c61081bd Refactor basic euphoria connection 2025-02-23 22:35:55 +01:00
2a8b466fa1 Refactor replies module 2025-02-23 22:35:55 +01:00
096df5d9fa Refactor and document nick module 2025-02-23 22:35:55 +01:00
92ea7f0aa0 Refactor and document api module 2025-02-23 22:35:55 +01:00
5ddffb510d Refactor and document emoji module 2025-02-23 22:35:55 +01:00
d22ccd767a Prepare rewrite 2025-02-23 22:35:55 +01:00
095d2cea86 Fix nick hue hashing algorithm in some edge cases
When the nick consisted entirely of non-alphanumeric characters and
included at least one colon-delimited emoji, the hue hashing
reimplementation would produce an incorrect result because
colon-delimited emoji were removed at the wrong point in the hashing
process.
2025-02-23 22:34:23 +01:00
6eea194d52 Update emoji 2025-02-23 21:40:39 +01:00
4f7cc49b63 Bump version to 0.6.0 2025-02-21 00:40:15 +01:00
1d444684f7 Update dependencies 2025-02-20 20:16:50 +01:00
bc3e3b1e13 Update tokio-tungstenite 2025-02-20 20:16:11 +01:00
fe68694932 Fix time and duration formatting 2024-12-04 20:01:32 +01:00
58b55ef433 Fix link to euph api in docs 2024-12-04 18:56:52 +01:00
cdcf80ab9a Fix timestamps with too much precision being representable 2024-12-04 18:56:03 +01:00
7360bf96f8 Fix rustls panic in example bots 2024-12-04 18:52:29 +01:00
61f5559370 Document rustls panic in changelog 2024-12-04 18:24:18 +01:00
f973a819b6 Make botrulez submodules public
This allows users of the library to use the commands' Args structs.
2024-12-04 17:21:53 +01:00
8506a231dd Add more lints 2024-12-04 17:21:53 +01:00
85c93ee01d Update dependencies 2024-12-04 17:10:42 +01:00
4314a24e78 Switch to jiff from time 2024-12-04 17:08:52 +01:00
0256329f65 Bump version to 0.5.1 2024-05-20 18:54:48 +02:00
20b2aab209 Update dependencies 2024-05-20 18:53:55 +02:00
69a4a2c07f Update emoji
The new set was organically sourced from free-range JSON:

https://euphoria.leet.nu/static/emoji.json

Since I'm loading emoji from JSON anyways, the corresponding function
is also exposed. Clients may want to load the emoji list dynamically at
runtime instead of using the built-in emoji.
2024-05-20 18:49:40 +02:00
276ff68512 Bump version to 0.5.0 2023-12-27 00:18:44 +01:00
97fe80bca1 Update dependencies 2023-12-27 00:18:44 +01:00
37934b3af8 Format changelog with more whitespace 2023-12-27 00:06:40 +01:00
96743e26e2 Update emoji 2023-12-26 15:24:15 +01:00
2decee83e9 Switch euphoria.io (RIP) to euphoria.leet.nu
euphoria.io is dead for good now, and euphoria.leet.nu is the blessed
clone/fork that will take its place. May this crevice of the internet
survive another day.
2023-12-26 13:57:18 +01:00
fa6c8cdce9 Bump version to 0.4.0 2023-05-14 15:55:58 +02:00
ebdbb52f0d Update dependencies 2023-05-14 15:54:20 +02:00
09aed3181e Add whitespace todo 2023-05-14 14:55:47 +02:00
34f33ff038 Rename Snapshot to ConnSnapshot 2023-05-14 14:44:49 +02:00
0f217a6279 Fix euph errors always turning into conn::Errors 2023-04-08 20:22:19 +02:00
0c135844a4 Fix deserializing empty events and replies 2023-04-08 20:05:41 +02:00
c479cbd687 Mark all backwards-incompatible changes 2023-04-08 20:03:56 +02:00
768a259f02 Add timeout while opening connection
This should hopefully fix an issue where instances would get stuck in a
"Connecting" state after suspending the host machine or maybe just
connecting it to a different wifi. I've not managed to reliably
reproduce the bug, so this may not fix it at all.
2023-03-12 16:31:58 +01:00
373a98c26c Make Instance cloneable 2023-03-04 00:07:13 +01:00
5005e56881 Fix phone and mobile emoji 2023-03-01 01:22:25 +01:00
3aaef7ab11 Make command parsing helper function public 2023-02-27 14:07:06 +01:00
4479126500 Return whether command handled message 2023-02-27 12:41:49 +01:00
a6331d50b8 Implement Command for Uptime 2023-02-27 12:04:00 +01:00
1844cddcc0 Bump version to 0.3.1 2023-02-26 21:17:57 +01:00
7120e1d5b9 Update dependencies 2023-02-26 21:17:57 +01:00
d303dfbd0d Stay connected on bounce if no password is set 2023-02-26 21:17:57 +01:00
f60420afa5 Add Instances::is_from_known_instance 2023-02-26 21:17:57 +01:00
480ea3bd82 Reorganize Uptime code 2023-02-26 21:17:57 +01:00