Commit Graph

555 Commits

Author SHA1 Message Date
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