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
eleksir
6b91648666
Implement random phrase before ban action
2023-08-17 10:08:04 -07:00
eleksir
8a67a91ffb
Implement random startup/runtime status, cosmetic fixes
...
* Implement random startup status from array in config
* Implement random runtime status from array in config
* Implement runtime status rotation
* Remove noecho option from config and from code
* Use separate goroutine to set statuses
2023-08-17 09:48:57 -07:00
eleksir
ce9561b488
Fix comments and typos in black and white lists
2023-08-13 10:20:18 -07:00
eleksir
84f7f21217
More lint fixes
...
* Correctly wrap errors
* Fix comments
* Add blank strings before continue, where it missing
* Reduce allocations
2023-08-13 08:40:50 -07:00
eleksir
267dd841a4
Do not os.Exit() on "wire" and xmpp-proto errors, re-run main routine and helper goroutines
2023-08-05 20:02:10 -07:00
Sergei
e8f8b3cb49
Massive cleanup - coding style, tiny bugs, typos and other errors
2023-07-29 23:12:38 -07:00
eleksir
0f1177bd91
Initial commit
2023-07-24 02:41:19 -07:00