Commit Graph

636 Commits

Author SHA1 Message Date
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
Kay Marquardt (Gnadelwartz)
487deee08c final debug msgs 2020-07-04 09:18:28 +02:00
Kay Marquardt (Gnadelwartz)
9b1119d51d move individual debug checks to mycommands.sh part 2 2020-07-02 17:24:56 +02:00
Kay Marquardt (Gnadelwartz)
550387bdbc Bashbot Version 0.98 2020-07-01 12:23:57 +02:00
Kay Marquardt (Gnadelwartz)
358f95a766 rework BASHBOTDEBUG is always global 2020-06-30 07:26:16 +02:00
Kay Marquardt (Gnadelwartz)
9e3d301d37 finalise service pinned message, fix new/left member ARRAY 2020-06-29 13:29:47 +02:00
Kay Marquardt (Gnadelwartz)
12b4696e80 minor optimisation to URLS processing 2020-06-29 12:25:55 +02:00
Kay Marquardt (Gnadelwartz)
4883c18974 fix possible problems found while adjust test 2020-06-29 11:21:56 +02:00
Kay Marquardt (Gnadelwartz)
63b9c283a2 service message start with /_ to avoid clashes 2020-06-29 08:14:39 +02:00
Kay Marquardt (Gnadelwartz)
4b3363f603 more places with debug_checks 2020-06-28 08:52:02 +02:00
Kay Marquardt (Gnadelwartz)
456e86b932 fix of fix test errors 2020-06-27 18:51:17 +02:00
Kay Marquardt (Gnadelwartz)
e6de3828d3 adjust version strings 2020-06-27 18:33:58 +02:00
Kay Marquardt (Gnadelwartz)
ae4610a742 fix problems found by tests 2020-06-27 18:32:50 +02:00
Kay Marquardt (Gnadelwartz)
c517129559 fix missing copy botconfig 2020-06-27 12:43:46 +02:00
Kay Marquardt (Gnadelwartz)
724f36b4df start using log_error 2020-06-27 10:43:08 +02:00
Kay Marquardt (Gnadelwartz)
423bf35411 more debug checks to locate where broken config or strange files appears 2020-06-27 10:29:36 +02:00
Kay Marquardt (Gnadelwartz)
c79031f604 prepare 0.98 release 2020-06-26 16:23:16 +02:00
Kay Marquardt (Gnadelwartz)
5afe05aa44 implement RETRY for send_album 2020-06-26 09:11:10 +02:00
Kay Marquardt (Gnadelwartz)
a69204596e fix EVENT_SEND for upload 2020-06-26 09:07:00 +02:00
Kay Marquardt (Gnadelwartz)
e3151626c0 first working version of send album for URLs 2020-06-26 08:26:52 +02:00
Kay Marquardt (Gnadelwartz)
01a72e8a26 improve init 2020-06-25 17:15:49 +02:00
Kay Marquardt (Gnadelwartz)
af156a4e1b fix merge conflict 2020-06-25 13:32:36 +02:00
Kay Marquardt (Gnadelwartz)
d904371fb9 resolve conflict with develop 2020-06-24 19:01:30 +02:00
Kay Marquardt (Gnadelwartz)
48f314eaaa unneeded : in start_bot fixes #134 2020-06-23 20:57:38 +02:00
Kay Marquardt (Gnadelwartz)
3d760b3319 unneeded : in start_bot fixes #134 2020-06-23 20:48:28 +02:00
Kay Marquardt (Gnadelwartz)
d2a578a757 codespell is much better 2020-06-23 16:35:50 +02:00
Kay Marquardt (Gnadelwartz)
80a6dbbe9f more save split to array 2020-06-22 18:38:15 +02:00
Kay Marquardt (Gnadelwartz)
4fe969766b better handling of restart jobs 2020-06-22 14:10:36 +02:00
Kay Marquardt (Gnadelwartz)
d52ea8c240 avoid unintended file overwrite 2020-06-20 20:12:36 +02:00
Kay Marquardt (Gnadelwartz)
4d8c2054a6 fix detecting sourceing 2020-06-19 18:47:18 +02:00
Kay Marquardt (Gnadelwartz)
f119c447ce fix 2 message typo 2020-06-19 17:39:53 +02:00
Kay Marquardt (Gnadelwartz)
1cba3aaf53 check for no arg at beginning 2020-06-19 13:41:29 +02:00
Kay Marquardt (Gnadelwartz)
f1d71a0771 process help at beginning 2020-06-19 13:15:50 +02:00
Kay Marquardt (Gnadelwartz)
11b5aab9b9 do not create botconfig on help 2020-06-19 12:56:09 +02:00
Kay Marquardt (Gnadelwartz)
75024a1726 rearrange get botname, allow recover from broken botconfig 2020-06-19 12:54:05 +02:00
Kay Marquardt (Gnadelwartz)
cf536c9ca3 make help browseable if w3mmor lynx exists 2020-06-19 12:51:36 +02:00
Kay Marquardt (Gnadelwartz)
fa5be1eafb rename BOTDATABASE to BOTCONFIG 2020-06-19 12:49:18 +02:00
Kay Marquardt (Gnadelwartz)
ba614b71fd fix nolog on updates 2020-06-18 16:04:39 +02:00
Kay Marquardt (Gnadelwartz)
67f2dcd498 finalise get/send Json log on debug 2020-06-18 15:38:05 +02:00
Kay Marquardt (Gnadelwartz)
02715e4128 rename UPDATE.log to BASHBOT.log 2020-06-18 14:06:36 +02:00
Kay Marquardt (Gnadelwartz)
eea1de6cbd global BASHBOTDEBUG, do not log getting updates 2020-06-18 13:19:30 +02:00
Kay Marquardt (Gnadelwartz)
d221fb698e global BASHBOTDEBUG, log send/get Json to debuglog 2020-06-18 13:11:19 +02:00
Kay Marquardt (Gnadelwartz)
344167e259 log interactvice/backgound start kill 2020-06-18 12:39:07 +02:00
Kay Marquardt (Gnadelwartz)
35d5e05ea9 log deleteMessage 2020-06-18 12:36:34 +02:00
Kay Marquardt (Gnadelwartz)
215667b3ef direct read is faster than caching botconfig with updateArray 2020-06-18 11:51:19 +02:00
Kay Marquardt (Gnadelwartz)
18f0ace928 finalize service message processing 2020-06-17 08:38:44 +02:00
Kay Marquardt (Gnadelwartz)
6e3655fc2b fix startup message 2020-06-17 05:44:01 +02:00
Kay Marquardt (Gnadelwartz)
7694df5ecc detect edited message 2020-06-16 23:05:52 +02:00
Kay Marquardt (Gnadelwartz)
b33132ea5e inform dot admin about stop, resume, restart 2020-06-15 20:07:43 +02:00
Kay Marquardt (Gnadelwartz)
8991cc98f0 optimize update processing, fix LEFTMEMBER 2020-06-15 19:44:46 +02:00
Kay Marquardt (Gnadelwartz)
4b18757779 remove JsonEscape for markup type, not needed 2020-06-15 14:22:28 +02:00
Kay Marquardt (Gnadelwartz)
4990f70bce escape tab in JSON send to telegram 2020-06-15 14:16:14 +02:00
Kay Marquardt (Gnadelwartz)
834f5ba200 escape tab in JSON send to telegram 2020-06-15 14:14:34 +02:00
Kay Marquardt (Gnadelwartz)
c943280034 cache blocked users with updateArray 2020-06-15 10:42:36 +02:00