Commit graph

176 commits

Author SHA1 Message Date
ea53af739a Add helper function for adding command to Commands 2025-02-23 22:35:55 +01:00
b62afb32e6 Expose client and multiclient config 2025-02-23 22:35:55 +01:00
a527b22515 Construct clap commands from handlers too 2025-02-23 22:35:55 +01:00
a73ababe02 Make command struct fields public
They should've been public the entire time, but i forgor
2025-02-23 22:35:55 +01:00
c8116ea278 Set MSRV to 1.82 2025-02-23 22:35:55 +01:00
f6d25fbfcf Clean up imports 2025-02-23 22:35:55 +01:00
63c785493e Add FromHandler command 2025-02-23 22:35:55 +01:00
49c4c91ccd Add CommandExt trait 2025-02-23 22:35:55 +01:00
346f4ff543 Remove Bot completely 2025-02-23 22:35:55 +01:00
07d3f7a0f6 Remove unnecessary server config 2025-02-23 22:35:55 +01:00
e462e9419a Track start time in clients 2025-02-23 22:35:55 +01:00
51ee7b9246 Remove generic bot state 2025-02-23 22:35:55 +01:00
c356c5f2ae Add example bot 2025-02-23 22:35:55 +01:00
39b6c341fa Create euphoxide-bot crate 2025-02-23 22:35:55 +01:00
42f5c9cb21 Add single and multi client example bots 2025-02-23 22:35:55 +01:00
4d09c0c4df Create euphoxide-client crate 2025-02-23 22:35:55 +01:00
7aba0eb50e Set up workspace 2025-02-23 22:35:55 +01:00
e280d947d8 Disconnect when required 2025-02-23 22:35:55 +01:00
b9f3bd7860 Document client connection 2025-02-23 22:35:55 +01:00
8fbf77a2d7 Export Error and Result at top level 2025-02-23 22:35:55 +01:00
eca41c7d25 Add examplebot 2025-02-23 22:35:55 +01:00
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