eleksir
c05a3b8ca7
Rename field in log software -> name
2025-12-21 19:15:40 +03:00
eleksir
de3db48d47
Fix filling presence db, fix ban by useragent
2025-12-21 19:07:48 +03:00
eleksir
9ea444f365
Ignore presences from roster
2025-12-21 13:10:59 +03:00
eleksir
3d85dbcb58
[WIP] Fix ban by software version, some other under-hood changes
...
- Use updated version of upstream go-xmpp + fixes on client-side
- Introduce golangci-lint v2 + fixes
- Move especially noisy debugging stuff to separate config handles to be able to switch them off
- Add a bit debug to ban by software path
2025-12-16 00:51:10 +03:00
eleksir
a128b473ff
Replace logrus with slog
2025-11-15 16:15:00 +03:00
eleksir
ee5d40cfee
Update linter, fix linter errors
2025-11-15 15:52:34 +03:00
eleksir
3ebd2b48d1
Implement ban by software version xep-0092
v0.2
2025-05-29 23:56:19 +03:00
eleksir
0ed74ed812
Implement proper version command
v0.1
2025-05-27 22:09:56 +03:00
eleksir
f9dd1acc45
Update deps, update config of golangci-lint, fix some golangci-lint warnings
2025-05-27 20:54:22 +03:00
eleksir
21b5f59c1c
Hopefully fix xmpp server communication error handling, but fix is kinda dirty
2024-12-07 20:12:28 +03:00
eleksir
073138bde4
Properly wrap error, add more informative error message body
2024-12-07 19:03:51 +03:00
eleksir
fb19f8056a
Use tomb v2, update deps, fix hang on stale connection
...
- Use tomb v2 to properly spawn and reap goroutines (hopefully)
- Update deps
- Fix hang on stale connection due to improper goroutine management
2024-11-16 10:41:00 +03:00
eleksir
678d830f8c
Fix .gitignore and return cmd/buny-jabber-bot/main.go
2024-11-15 23:56:22 +03:00
eleksir
17fe947df9
Add two caps that are somewhat implemented http://jabber.org/protocol/{caps,muc}
2024-10-21 21:35:34 +03:00
eleksir
0264e675a4
Refactor layout to go-style, update deps
2024-10-21 19:47:11 +03:00
eleksir
27f79905f4
Update vendored libs, min go version now 1.22
2024-07-24 23:10:32 +03:00
eleksir
0773c29359
Fix typo in README.md
2023-11-24 02:36:53 +03:00
eleksir
c803682b8b
Update README.md, Design.txt and some comments here and there
2023-11-24 02:29:56 +03:00
eleksir
9a9516e80d
Properly detect ban event source (wether we are in src room or not)
2023-11-24 01:23:26 +03:00
eleksir
ea6e562928
Fix existing comments, add some new
2023-11-24 01:12:51 +03:00
eleksir
420ed7d932
Do not exclude resource while checking evil jid against blacklist
2023-11-13 22:22:06 +03:00
eleksir
b690b54891
Be more verbose about closing of jabber connection
2023-11-12 10:41:30 +03:00
eleksir
40c574faf7
Do not use defer, notify gTomb before closing goroutines. Explicitly.
2023-11-12 10:36:08 +03:00
eleksir
31490b0922
Add per-chat nick setting, update README.md
2023-11-05 20:09:17 +03:00
eleksir
d88f08479d
Move read config stuff to separate file
2023-11-05 16:00:05 +03:00
eleksir
139ede7022
Update .gitignore
2023-10-29 14:48:01 +03:00
eleksir
2bf0ac18b9
Handle error in caps check and squash
2023-10-29 14:47:35 +03:00
eleksir
a08baa5f38
Implement initial flavouor of ban by caps
2023-10-29 12:09:03 +03:00
eleksir
122f16c408
Add bayes classifier stubs, string normalizer, and deps, update sample config
2023-10-28 15:15:15 +03:00
eleksir
07da3e5a49
Kill myLoop in more obvious way, explicitly use .Close on any connection before exit myLoop()
2023-10-21 10:58:05 +03:00
eleksir
a9935abf53
More details in ban log message
2023-10-19 21:44:59 +03:00
eleksir
75b9ab8a8b
Use warn loglevel for message about ban
2023-10-19 09:56:29 +03:00
eleksir
e48be3936e
Add golangci-lint and fix a bit of errors
2023-10-15 18:16:45 +03:00
eleksir
c5f011dabc
On ban event log also full nick
2023-10-08 20:55:34 -07:00
eleksir
b126052cb6
Update Makefile: properly name binary on windows platform
2023-10-08 10:34:26 -07:00
eleksir
637d7778e3
Exit on wire error explicitly, do not hope on gTomb.Dying()
2023-10-08 10:27:58 -07:00
eleksir
ddd5e46dbf
Fix software version name field misstype, also return os field properly :)
2023-10-08 10:17:33 -07:00
eleksir
5b730c9684
Do not try to ban outcasts, they already banned
2023-10-02 09:59:05 -07:00
eleksir
8a4a1ae6b7
Try to stub ban successful notification on bot side (for good, it should properly be parsed on go-xmpp side)
2023-10-02 09:50:56 -07:00
eleksir
453c15c046
Move ban_delay to config
2023-10-01 23:12:37 -07:00
eleksir
8de8d56d67
Add little delay before ban. Looks like jabber.ru a bit on a slowpoke side.
2023-10-01 21:45:41 -07:00
eleksir
80dcfa7294
Implement openrc service file
2023-10-01 19:54:11 -07:00
eleksir
998a827d4b
Implement ban by phrase regexp, extend rehash command
...
* ban by blacklisted phrase regex-es
* rehash now works not only in rooms, but in private messages from rooms too
2023-10-01 19:43:40 -07:00
eleksir
48541ce14d
Update vendored libs, fix for go-xmpp@1.6.0
2023-09-24 14:28:27 -07:00
eleksir
ca384b5165
Implement help, помощь, rehash commands, restrict presence collection precedure
2023-09-03 15:00:41 +03:00
eleksir
91eac5cb6d
Fix linter errors and make Makefile more portable
2023-09-02 15:42:41 -07:00
eleksir
716fc59700
Fix Makefile to allow build both on winnt and linux/unix
2023-09-02 14:35:22 +03:00
eleksir
7f609ffb97
Fully implement ban of vilians when bot entered infested room, fix a bit MUC ping
2023-09-02 14:16:06 +03:00
eleksir
59b92f450d
Initial implementation of on-enter ban
2023-09-02 10:22:39 -07:00
eleksir
0e9fa089c0
Add comment about buny() function
2023-09-02 10:14:27 -07:00