pep
0746afb443
bot: Implement hook deduplication
...
Avoid sending similar (update) event within a certain time frame (5m).
Signed-off-by: pep <pep@bouah.net>
2026-01-08 13:48:15 +01:00
pep
628595af4d
Missing fmt bits
...
Signed-off-by: pep <pep@bouah.net>
2026-01-04 15:14:02 +01:00
pep
8dfb89fe38
bot: resync on 'rejoin' rather than leave and join
...
The xmpp crate doesn't yet have mechanisms to wait for the next incoming
presence and so the `leave_room` method returns after the unavailable
presence has been set. Thus the code may still think it's being joined
when it pretty soon going not to be.
Instead, we chose to send another join presence to signal the MUC we
want to get the full state again (occupants, subject), without leaving.
Signed-off-by: pep <pep@bouah.net>
2025-12-28 19:12:31 +01:00
pep
ea62a41b78
Add command to rejoin rooms
...
Signed-off-by: pep <pep@bouah.net>
2025-12-27 14:31:32 +01:00
pep
caa92227b2
fmt update?
...
Signed-off-by: pep <pep@bouah.net>
2025-12-27 14:31:32 +01:00
pep
04bae8dc0c
bot: Display debug end even if hook hasn't been processed
...
Signed-off-by: pep <pep@bouah.net>
2025-12-17 16:01:23 +01:00
pep
eb0b7ff020
Don't follow bookmarks autojoin config
...
If this flag is enabled, the library expects bookmarks to be added to
the account itself, and when there's no bookmark for a room, the
corresponding room is automatically left. This doesn't work in the case
where many instances of the bot are on the same account.
It may work in the future if support for various sets of rooms/hooks are
added, but for the moment it seemed easier (and maybe also more useful
for other users of the xmpp-rs lib) to implement this.
Signed-off-by: pep <pep@bouah.net>
2025-11-15 22:00:26 +01:00
pep
e064263f96
Cleanly shutdown on ctrl_c
...
Signed-off-by: pep <pep@bouah.net>
2025-05-03 17:46:29 +02:00
pep
29881089d3
Update xmpp-rs upstream to 23c947d081
...
Signed-off-by: pep <pep@bouah.net>
2025-05-03 12:32:06 +02:00
pep
4e0eea9e6c
rustfmt for previous commit
...
Missed it, and it had been pushed for a long time.
Signed-off-by: pep <pep@bouah.net>
2025-03-11 12:40:17 +01:00
pep
9eeca94366
Update to xmpp-rs (ec72d71551) to get serde support for ResourcePart
...
Signed-off-by: pep <pep@bouah.net>
2024-12-29 21:06:13 +01:00
pep
c29e87be03
Update xmpp dep to main (5bc94dce95)
...
Signed-off-by: pep <pep@bouah.net>
2024-12-19 23:59:28 +01:00
pep
161c259dee
rustfmt
...
Signed-off-by: pep <pep@bouah.net>
2024-12-19 23:59:28 +01:00
pep
d16ead8bc9
Split web and xmpp parts into different tasks
...
Signed-off-by: pep <pep@bouah.net>
2024-11-21 17:11:43 +01:00
Maxime “pep” Buquet
2f101c617c
Rename hook module to hooks
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-09-04 20:35:05 +02:00
Maxime “pep” Buquet
bcc8728cc8
Refactor hook module to also format Forgejo stuff
...
Temporarily disable some Gitlab features
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-09-04 20:35:05 +02:00
Maxime “pep” Buquet
77c193bfb6
Update to xmpp main (274baaef9afb)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-08-31 00:40:37 +02:00
7b63e24168
Update to xmpp 0.6
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-08-31 00:39:49 +02:00
94ac2d8818
Save when not is_online
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-08-21 00:11:37 +02:00
Maxime “pep” Buquet
1cf93d1ba8
Rename webhook to hook where appropriate
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-10 14:02:35 +02:00
Maxime “pep” Buquet
8e94435604
Attempt at Forgejo Webhook support
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-10 02:34:37 +02:00
Maxime “pep” Buquet
acf22a05c1
Update xmpp dependency to 0.5
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-08-21 13:13:47 +02:00