Commit Graph

589 Commits

Author SHA1 Message Date
Kay Marquardt (Gnadelwartz)
726357ab58 rework help, provide option -h --help 2021-01-01 21:36:48 +01:00
dcoomber
b0578d2541 Fixed some spelling mistakes 2021-01-01 21:15:11 +02:00
Kay Marquardt (Gnadelwartz)
647492c989 error code 5 description 2021-01-01 19:56:19 +01:00
Kay Marquardt (Gnadelwartz)
7b6a6ca9c3 tests: adapt data-bot-bash created at installation 2021-01-01 19:25:25 +01:00
Kay Marquardt (Gnadelwartz)
74dfdd753f data-bot-bash is created while installing 2021-01-01 19:01:26 +01:00
Kay Marquardt (Gnadelwartz)
23e04a98ef finally eliminate echo ... 2021-01-01 17:14:59 +01:00
Kay Marquardt (Gnadelwartz)
b04ee84b1d remove unneeded variable ADIM 2020-12-31 18:11:37 +01:00
Kay Marquardt (Gnadelwartz)
79f58cd7fd remove unneeded BOTADMIN TOKENFILE variables 2020-12-31 18:02:31 +01:00
Kay Marquardt (Gnadelwartz)
bddd52829e fix log_error, log_update do not interpret \n\t etc 2020-12-30 10:07:10 +01:00
Kay Marquardt (Gnadelwartz)
29f2ce8418 fix log_message, log_updates do not interpret \n\t etc 2020-12-30 10:03:23 +01:00
Kay Marquardt (Gnadelwartz)
91419a2691 do not move old logfiles anymore 2020-12-29 14:02:11 +01:00
Kay Marquardt (Gnadelwartz)
43f5536dcb better log_message string format 2020-12-28 22:40:23 +01:00
Kay Marquardt (Gnadelwartz)
be87ba3e23 fix init test if BOTTOKEN is set 2020-12-28 22:35:24 +01:00
Kay Marquardt (Gnadelwartz)
249dbb0471 some minor text changes 2020-12-27 21:17:39 +01:00
Kay Marquardt (Gnadelwartz)
eedd0b3ab3 update installation instructions 2020-12-27 17:13:37 +01:00
Kay Marquardt (Gnadelwartz)
3f8841b8f1 currently no update actions on init 2020-12-27 15:12:35 +01:00
Kay Marquardt (Gnadelwartz)
0d7fee3bd2 no more convert old config 2020-12-27 14:58:34 +01:00
Kay Marquardt (Gnadelwartz)
21afd4e62e no more autoatic download of JSON.sh 2020-12-27 14:53:00 +01:00
Kay Marquardt (Gnadelwartz)
9bfc27a678 save corrupt bot config on recover 2020-12-27 13:12:38 +01:00
Kay Marquardt (Gnadelwartz)
90c5d87761 better messages when entering bot token and bot admin 2020-12-27 12:51:19 +01:00
Kay Marquardt (Gnadelwartz)
c0bce91937 fix NN 2020-12-27 12:38:52 +01:00
Kay Marquardt (Gnadelwartz)
b123c3dbce better messages for invalid bot token 2020-12-27 12:34:39 +01:00
Kay Marquardt (Gnadelwartz)
cae6288598 CLEAR -> INTERACTIVE 2020-12-27 11:26:38 +01:00
Kay Marquardt (Gnadelwartz)
874e37e408 remove stats command 2020-12-27 11:18:42 +01:00
Kay Marquardt (Gnadelwartz)
03bdecb056 use printf 2020-12-26 21:18:18 +01:00
Kay Marquardt (Gnadelwartz)
239dd769c2 Version 1.20 2020-12-25 21:47:08 +01:00
Kay Marquardt (Gnadelwartz)
2ab00a2c57 add bin/send_file.sh, fix logging caption 2020-12-25 20:57:05 +01:00
Kay Marquardt (Gnadelwartz)
f016598054 get BOT_ADMIN and BOT_NAME in bin/bashbot_env.inc 2020-12-25 19:16:54 +01:00
Kay Marquardt (Gnadelwartz)
6173d77c4e type -t is locale indepent, use C.utf-8 for printf 2020-12-24 13:08:41 +01:00
Kay Marquardt (Gnadelwartz)
69ca15a9d2 better broadcast hint 2020-12-24 11:45:40 +01:00
Kay Marquardt (Gnadelwartz)
eba9216ba6 remove stats from usage 2020-12-24 09:24:02 +01:00
Kay Marquardt (Gnadelwartz)
450d94d4d3 check for utf-8 locale 2020-12-24 09:19:54 +01:00
Kay Marquardt (Gnadelwartz)
824cf137d9 fix test for missing unicode supprt 2020-12-24 08:22:03 +01:00
Kay Marquardt (Gnadelwartz)
9f3d39d461 stats deprecated 2020-12-23 21:14:56 +01:00
Kay Marquardt (Gnadelwartz)
82f7939132 remove deprecated commands 2020-12-19 16:02:13 +01:00
Kay Marquardt (Gnadelwartz)
f548b0e1a3 fix DETECTED_CURL 2020-12-19 08:03:55 +01:00
Kay Marquardt (Gnadelwartz)
62f2a0d469 fix recover botconfig 2020-12-18 15:24:21 +01:00
Kay Marquardt (Gnadelwartz)
c88f76796d optimize creation of botconfig 2020-12-18 15:16:15 +01:00
Kay Marquardt (Gnadelwartz)
3324ecdf26 fix log sendJson 2020-12-18 15:00:08 +01:00
Kay Marquardt (Gnadelwartz)
0db0215d9b fix sendJsonResult and chat is not a number 2020-12-18 14:47:53 +01:00
Kay Marquardt (Gnadelwartz)
53c7879c9f add error respone for chat id not a nuber 2020-12-18 14:23:20 +01:00
Kay Marquardt (Gnadelwartz)
8b9cb1a77e remove set -x 2020-12-17 20:25:52 +01:00
Kay Marquardt (Gnadelwartz)
16a22995d6 remove nashbot option broadcast, use broadcast.sh 2020-12-17 08:58:32 +01:00
Kay Marquardt (Gnadelwartz)
e6223b6645 start of ready to use scripts 2020-12-16 13:45:59 +01:00
Kay Marquardt (Gnadelwartz)
85ee75705a fix some update messages are ignored 2020-12-16 00:09:32 +01:00
Kay Marquardt (Gnadelwartz)
5b94265b09 optimize logging 2020-12-15 20:53:42 +01:00
Kay Marquardt (Gnadelwartz)
32a6ef2cc6 try to avoid empty DEBUG.log file 2020-12-15 17:19:09 +01:00
Kay Marquardt (Gnadelwartz)
c084005106 add support for JSON.awk, 5 times faster 2020-12-15 16:36:27 +01:00
Kay Marquardt (Gnadelwartz)
d7d61a411f sendJson: factor out curl/wget, better log. fix git-add.sh 2020-12-15 10:40:20 +01:00
Kay Marquardt (Gnadelwartz)
8379a624e3 sendJson check chat is a number 2020-12-15 10:12:18 +01:00
Kay Marquardt (Gnadelwartz)
2e24918beb debug log sentMessage also 2020-12-15 10:07:43 +01:00
Kay Marquardt (Gnadelwartz)
4442382a10 option to ignore commands for other bots if admin 2020-12-14 20:35:45 +01:00
Kay Marquardt (Gnadelwartz)
3c1ea93168 try recover from block in update loop 2020-12-14 14:00:23 +01:00
Kay Marquardt (Gnadelwartz)
eda77f8b55 add /_migrate_group to mycommands.sh example 2020-12-13 12:44:14 +01:00
Kay Marquardt (Gnadelwartz)
da7a3f1f21 detect supergroup migration 2020-12-13 12:00:18 +01:00
Kay Marquardt (Gnadelwartz)
22741d9a0c fix no need for JsonDecode 2020-12-13 10:24:26 +01:00
Kay Marquardt (Gnadelwartz)
cdb63b8c76 optimze venue and contact detection 2020-12-13 10:10:15 +01:00
Kay Marquardt (Gnadelwartz)
401a31a172 less grep in process_message 2020-12-13 09:57:57 +01:00
Kay Marquardt (Gnadelwartz)
b9cfd4b5e8 process service messages in groups only 2020-12-13 08:53:29 +01:00
Kay Marquardt (Gnadelwartz)
10c104d471 check for locale C 2020-12-07 15:50:56 +01:00
Kay Marquardt (Gnadelwartz)
62cab32da5 bottoken starts with bot id 2020-12-05 14:11:21 +01:00
Kay Marquardt (Gnadelwartz)
d6e1c222f7 optimize getBotName 2020-12-03 20:43:20 +01:00
Kay Marquardt (Gnadelwartz)
40106ee163 offer to check bottoken online on first init 2020-12-03 14:52:35 +01:00
Kay Marquardt (Gnadelwartz)
1b8a1d4253 get/save botid, new function bot_is_admin 2020-12-03 14:07:39 +01:00
Kay Marquardt (Gnadelwartz)
d30a700b33 change Version to v1.2 2020-11-30 18:38:19 +01:00
Kay Marquardt (Gnadelwartz)
aac3ddf45f fix make-dist 2020-11-29 17:44:20 +01:00
Kay Marquardt (Gnadelwartz)
ef80aa5690 better curl/wget not found message 2020-11-29 17:43:00 +01:00
Kay Marquardt (Gnadelwartz)
95b2b9a79d detect if no curl AND no wget 2020-11-29 17:20:57 +01:00
Gnadelwartz
282448772a fix BASHBOT_UPDATELOG 2020-11-29 15:57:26 +01:00
Gnadelwartz
b5caff0a32 statisfy newer shellcheck version 2020-11-29 15:34:00 +01:00
Kay Marquardt (Gnadelwartz)
b4dcb52793 allow enabling of getJson update logging 2020-11-29 10:50:05 +01:00
Kay Marquardt (Gnadelwartz)
b4c83c141a adjust curl not found messages 2020-11-29 09:40:45 +01:00
Kay Marquardt (Gnadelwartz)
0b64af7423 check if iconv exist 2020-11-28 17:36:34 +01:00
Kay Marquardt (Gnadelwartz)
de31d7731f optimize detect_curl 2020-11-28 17:14:35 +01:00
Kay Marquardt (Gnadelwartz)
6948ecd778 warning if curl is not found in PATH and default locations 2020-11-28 12:30:32 +01:00
Kay Marquardt (Gnadelwartz)
6ec00d49b3 remove JSON.sh -s option to fix message newline conversion on ubuntu 2020-10-16 10:53:08 +02:00
dcoomber
269d18507f Corrected return code for bottoken error 2020-09-27 20:30:10 +02:00
dcoomber
d667ecc262 Merging with topkecleon-develop 2020-09-27 20:24:15 +02:00
dcoomber
7488d52922 Cosmetic updates to some comments 2020-09-26 21:25:17 +02:00
dcoomber
12579c8712 Cosmetic updates to spelling and indentation 2020-09-26 19:52:06 +02:00
David Coomber
d9620c7de6 Updated prompt references to basbot / BASBOT to bashbot / BASHBOT 2020-09-06 19:33:13 +02:00
Kay Marquardt (Gnadelwartz)
65e9775ad6 replace newlines with \n in all sendMessage functions 2020-08-15 09:47:16 +02:00
Kay Marquardt (Gnadelwartz)
d8c10ef069 start develop v1.1 2020-08-15 09:42:20 +02:00
Kay Marquardt (Gnadelwartz)
25a33b3731 Bashbot Version 1.0 2020-08-15 09:29:13 +02:00
Kay Marquardt (Gnadelwartz)
3e10396e2e save startup time while cleanup botconfig 2020-08-06 08:34:59 +02:00
Kay Marquardt (Gnadelwartz)
b9c8dc0ff8 fix help if not in bashbot dir 2020-08-05 08:08:50 +02:00
Kay Marquardt (Gnadelwartz)
6011444a3c fix leftchatmember example and message 2020-08-04 08:31:38 +02:00
Kay Marquardt (Gnadelwartz)
c4ab7ff4ee some more comment polishing 2020-08-01 11:37:32 +02:00
Kay Marquardt (Gnadelwartz)
3daf84dad8 Bashbot Version 0.99 2020-07-27 18:14:18 +02:00
Kay Marquardt (Gnadelwartz)
6e0242368e get/send Json: output debug messages to DEBUGLOG 2020-07-24 12:58:04 +02:00
Kay Marquardt (Gnadelwartz)
1952610282 show blocked users on stats 2020-07-23 09:14:38 +02:00
Kay Marquardt (Gnadelwartz)
2dc1f385f2 better readable sed command 2020-07-20 16:08:21 +02:00
Kay Marquardt (Gnadelwartz)
ef4d21f6f4 fix BASHBOT_RETRY, add example it bot is blocked 2020-07-12 11:19:58 +02:00
Kay Marquardt (Gnadelwartz)
2b104716df fix some small DEBUG problems 2020-07-11 14:11:48 +02:00
Kay Marquardt (Gnadelwartz)
35528760fd fix DEBUGLOG not set 2020-07-11 08:34:57 +02:00
Kay Marquardt (Gnadelwartz)
f4f6c2c501 fix log_error printf 2020-07-11 08:06:44 +02:00
Kay Marquardt (Gnadelwartz)
9799db4cb9 debug should always last argument 2020-07-10 08:39:33 +02:00
Kay Marquardt (Gnadelwartz)
d85c7794a9 move old logfiles to logs on init 2020-07-09 22:31:58 +02:00
Kay Marquardt (Gnadelwartz)
d8cff8f70e create log dir on init 2020-07-09 13:44:14 +02:00
Kay Marquardt (Gnadelwartz)
a12738734b create log dir on init 2020-07-09 13:41:09 +02:00