Commit graph

117 commits

Author SHA1 Message Date
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
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
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
4314a24e78 Switch to jiff from time 2024-12-04 17:08:52 +01: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
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
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
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
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
23d3166c2d Implement Command for FullHelp 2023-02-26 21:17:57 +01:00
f5c5043896 Implement Command for ShortHelp 2023-02-26 21:17:57 +01:00
8b8d281f8a Implement Command for Ping 2023-02-26 21:17:57 +01:00
aa6383c1cf Fix instances taking too long to stop 2023-02-26 21:17:57 +01:00
be9d43f8cc Don't reconnect when encountering 404 2023-02-26 21:17:43 +01:00
319de09c35 Refactor instance logging 2023-02-17 16:55:35 +01:00
bcbe2614ab Fix !uptime minutes 2023-02-13 19:24:44 +01:00
a5a6f121bd Make mentions more permissive 2023-01-31 10:36:18 +01:00
f394ddc5a6 Use new nick functions in bang command 2023-01-30 19:01:16 +01:00
de62727dc6 Fix clippy lints 2023-01-30 18:57:28 +01:00
46d9367670 Add ConnTx::send_only 2023-01-30 18:57:06 +01:00
09a9620f8e Implement nick normalization and mentioning 2023-01-30 18:46:19 +01:00
e6898cc9f7 Move nick hue functions to their own module 2023-01-30 18:25:38 +01:00
3bc50dcf26 Add Prefixed command constructor 2023-01-26 20:00:04 +01:00
ff886efd78 Make Command system more flexible 2023-01-26 18:18:21 +01:00
2719ab3301 Fix connection not checking pings 2023-01-24 18:11:41 +01:00
dfacc05749 Log full packets under different target 2023-01-24 17:43:03 +01:00
a0d55482cc Add botrulez 2023-01-24 15:47:57 +01:00
5655fa7c4a Construct Commands 2023-01-24 15:26:11 +01:00
ec9c4c9dd4 Add error type parameter to commands 2023-01-24 14:48:59 +01:00
4dcc021f73 Add bot::command::clap 2023-01-24 14:36:19 +01:00
84b742ee6e Add bot::command and bot::commands 2023-01-24 12:15:22 +01:00