Commit Graph

  • c05a3b8ca7 Rename field in log software -> name master eleksir 2025-12-21 19:15:40 +03:00
  • de3db48d47 Fix filling presence db, fix ban by useragent eleksir 2025-12-21 19:07:48 +03:00
  • 9ea444f365 Ignore presences from roster eleksir 2025-12-21 13:10:59 +03:00
  • 3d85dbcb58 [WIP] Fix ban by software version, some other under-hood changes eleksir 2025-11-30 14:19:01 +03:00
  • a128b473ff Replace logrus with slog eleksir 2025-11-15 16:15:00 +03:00
  • ee5d40cfee Update linter, fix linter errors eleksir 2025-11-15 15:52:34 +03:00
  • 3ebd2b48d1 Implement ban by software version xep-0092 v0.2 eleksir 2025-05-29 23:56:19 +03:00
  • 0ed74ed812 Implement proper version command v0.1 eleksir 2025-05-27 22:09:56 +03:00
  • f9dd1acc45 Update deps, update config of golangci-lint, fix some golangci-lint warnings eleksir 2025-05-27 20:54:22 +03:00
  • 21b5f59c1c Hopefully fix xmpp server communication error handling, but fix is kinda dirty eleksir 2024-12-07 20:12:28 +03:00
  • 073138bde4 Properly wrap error, add more informative error message body eleksir 2024-12-07 18:57:31 +03:00
  • fb19f8056a Use tomb v2, update deps, fix hang on stale connection eleksir 2024-11-16 10:41:00 +03:00
  • 678d830f8c Fix .gitignore and return cmd/buny-jabber-bot/main.go eleksir 2024-11-15 23:56:22 +03:00
  • 17fe947df9 Add two caps that are somewhat implemented http://jabber.org/protocol/{caps,muc} eleksir 2024-10-21 21:35:34 +03:00
  • 0264e675a4 Refactor layout to go-style, update deps eleksir 2024-10-21 19:47:11 +03:00
  • 27f79905f4 Update vendored libs, min go version now 1.22 eleksir 2024-07-24 23:10:32 +03:00
  • 0773c29359 Fix typo in README.md eleksir 2023-11-24 02:36:53 +03:00
  • c803682b8b Update README.md, Design.txt and some comments here and there eleksir 2023-11-24 02:29:56 +03:00
  • 9a9516e80d Properly detect ban event source (wether we are in src room or not) eleksir 2023-11-24 01:14:38 +03:00
  • ea6e562928 Fix existing comments, add some new eleksir 2023-11-24 01:12:51 +03:00
  • 420ed7d932 Do not exclude resource while checking evil jid against blacklist eleksir 2023-11-13 22:22:06 +03:00
  • b690b54891 Be more verbose about closing of jabber connection eleksir 2023-11-12 10:41:19 +03:00
  • 40c574faf7 Do not use defer, notify gTomb before closing goroutines. Explicitly. eleksir 2023-11-12 10:36:08 +03:00
  • 31490b0922 Add per-chat nick setting, update README.md eleksir 2023-11-05 16:33:17 +03:00
  • d88f08479d Move read config stuff to separate file eleksir 2023-11-05 16:00:05 +03:00
  • 139ede7022 Update .gitignore old_master eleksir 2023-10-29 14:47:55 +03:00
  • 2bf0ac18b9 Handle error in caps check and squash eleksir 2023-10-29 14:47:35 +03:00
  • a08baa5f38 Implement initial flavouor of ban by caps eleksir 2023-10-29 12:09:03 +03:00
  • 122f16c408 Add bayes classifier stubs, string normalizer, and deps, update sample config eleksir 2023-10-28 15:15:15 +03:00
  • 07da3e5a49 Kill myLoop in more obvious way, explicitly use .Close on any connection before exit myLoop() eleksir 2023-10-21 10:58:05 +03:00
  • a9935abf53 More details in ban log message eleksir 2023-10-19 21:44:59 +03:00
  • 75b9ab8a8b Use warn loglevel for message about ban eleksir 2023-10-19 09:56:29 +03:00
  • e48be3936e Add golangci-lint and fix a bit of errors eleksir 2023-10-15 18:16:45 +03:00
  • c5f011dabc On ban event log also full nick eleksir 2023-10-08 20:55:34 -07:00
  • b126052cb6 Update Makefile: properly name binary on windows platform eleksir 2023-10-08 10:34:26 -07:00
  • 637d7778e3 Exit on wire error explicitly, do not hope on gTomb.Dying() eleksir 2023-10-08 10:20:22 -07:00
  • ddd5e46dbf Fix software version name field misstype, also return os field properly :) eleksir 2023-10-08 10:17:33 -07:00
  • 5b730c9684 Do not try to ban outcasts, they already banned eleksir 2023-10-02 09:59:05 -07:00
  • 8a4a1ae6b7 Try to stub ban successful notification on bot side (for good, it should properly be parsed on go-xmpp side) eleksir 2023-10-02 09:50:56 -07:00
  • 453c15c046 Move ban_delay to config eleksir 2023-10-01 23:12:37 -07:00
  • 8de8d56d67 Add little delay before ban. Looks like jabber.ru a bit on a slowpoke side. eleksir 2023-10-01 21:43:25 -07:00
  • 80dcfa7294 Implement openrc service file eleksir 2023-10-01 19:54:11 -07:00
  • 998a827d4b Implement ban by phrase regexp, extend rehash command eleksir 2023-10-01 19:42:09 -07:00
  • 48541ce14d Update vendored libs, fix for go-xmpp@1.6.0 eleksir 2023-09-24 14:28:27 -07:00
  • ca384b5165 Implement help, помощь, rehash commands, restrict presence collection precedure eleksir 2023-09-03 14:52:35 +03:00
  • 91eac5cb6d Fix linter errors and make Makefile more portable eleksir 2023-09-02 15:42:41 -07:00
  • 716fc59700 Fix Makefile to allow build both on winnt and linux/unix eleksir 2023-09-02 14:35:22 +03:00
  • 7f609ffb97 Fully implement ban of vilians when bot entered infested room, fix a bit MUC ping eleksir 2023-09-02 14:16:06 +03:00
  • 59b92f450d Initial implementation of on-enter ban eleksir 2023-09-02 10:22:39 -07:00
  • 0e9fa089c0 Add comment about buny() function eleksir 2023-09-02 10:14:27 -07:00
  • 5bb7dccde4 Use go v1.21 as default minimum required compiler version eleksir 2023-09-02 10:13:08 -07:00
  • 9c793d4b6e Use PGO to compile output binary eleksir 2023-09-02 10:11:36 -07:00
  • a0a403b272 Update README.md eleksir 2023-08-20 11:37:22 -07:00
  • ae7d0365e1 Handle empty string in JidRe and NickRe as noop eleksir 2023-08-20 11:15:55 -07:00
  • 39ac09f82a Implement ban by nick regexp (in MUCs) eleksir 2023-08-20 10:55:02 -07:00
  • 939ceaebfb Move some functions to go-xmpp, update deps, more lining eleksir 2023-08-20 09:33:56 -07:00
  • 9235329b37 Add comment about given rotation period in sample config, fix json format eleksir 2023-08-18 09:13:33 -07:00
  • fb5e203bc9 Add status rotation and ban reason description to Design.txt eleksir 2023-08-17 11:04:04 -07:00
  • 75e7a22c95 Implement optional reason in room' banlist eleksir 2023-08-17 11:02:53 -07:00
  • 257f489172 Fix typo in config parser eleksir 2023-08-17 10:15:09 -07:00
  • 6b91648666 Implement random phrase before ban action eleksir 2023-08-17 10:08:04 -07:00
  • 8a67a91ffb Implement random startup/runtime status, cosmetic fixes eleksir 2023-08-17 09:48:57 -07:00
  • ce9561b488 Fix comments and typos in black and white lists eleksir 2023-08-13 10:20:18 -07:00
  • 84f7f21217 More lint fixes eleksir 2023-08-06 19:02:36 -07:00
  • 267dd841a4 Do not os.Exit() on "wire" and xmpp-proto errors, re-run main routine and helper goroutines eleksir 2023-08-05 20:02:10 -07:00
  • e8f8b3cb49 Massive cleanup - coding style, tiny bugs, typos and other errors Sergei 2023-07-29 22:23:11 -07:00
  • 0f1177bd91 Initial commit eleksir 2023-06-11 21:03:41 +03:00