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 |
|
eleksir
|
5bb7dccde4
|
Use go v1.21 as default minimum required compiler version
|
2023-09-02 10:13:08 -07:00 |
|
eleksir
|
9c793d4b6e
|
Use PGO to compile output binary
|
2023-09-02 10:11:36 -07:00 |
|
eleksir
|
a0a403b272
|
Update README.md
|
2023-08-20 11:37:22 -07:00 |
|
eleksir
|
ae7d0365e1
|
Handle empty string in JidRe and NickRe as noop
|
2023-08-20 11:15:55 -07:00 |
|
eleksir
|
39ac09f82a
|
Implement ban by nick regexp (in MUCs)
* Move ban action to separate function
* Implement ban by nick regexp
|
2023-08-20 10:55:18 -07:00 |
|
eleksir
|
939ceaebfb
|
Move some functions to go-xmpp, update deps, more lining
|
2023-08-20 09:33:56 -07:00 |
|
eleksir
|
9235329b37
|
Add comment about given rotation period in sample config, fix json format
|
2023-08-18 09:44:39 -07:00 |
|
eleksir
|
fb5e203bc9
|
Add status rotation and ban reason description to Design.txt
|
2023-08-17 11:04:35 -07:00 |
|
eleksir
|
75e7a22c95
|
Implement optional reason in room' banlist
|
2023-08-17 11:02:53 -07:00 |
|
eleksir
|
257f489172
|
Fix typo in config parser
|
2023-08-17 10:15:09 -07:00 |
|