Commit Graph

323 Commits

Author SHA1 Message Date
Kay Marquardt (Gnadelwartz)
efca2e013b modules: send_file locals lowercase 2021-01-06 18:32:53 +01:00
Kay Marquardt (Gnadelwartz)
1525ac8231 modules: unify send_file send_upload 2021-01-06 17:45:13 +01:00
Kay Marquardt (Gnadelwartz)
c205ae528c modules: send_file send and save file_id 2021-01-06 16:43:18 +01:00
Kay Marquardt (Gnadelwartz)
3d9f7848cf doc: add send_file URL and file type 2021-01-05 22:35:34 +01:00
Kay Marquardt (Gnadelwartz)
126f61f00c modules: send_file add file type classes 2021-01-05 22:33:44 +01:00
Kay Marquardt (Gnadelwartz)
dd19f0f34e modules: send_file support for URL 2021-01-05 22:01:32 +01:00
Kay Marquardt (Gnadelwartz)
4582efd556 coding-style: positonal parameters $1 - \9 has precedence over verything 2021-01-05 16:17:34 +01:00
Kay Marquardt (Gnadelwartz)
fc5d50e3d5 modules: Array2Json fix missing + in regex 2021-01-05 12:57:07 +01:00
Kay Marquardt (Gnadelwartz)
641727dc99 fix missing ${xxx} warnings 2021-01-04 23:08:09 +01:00
Kay Marquardt (Gnadelwartz)
d310805a98 replace R090909 -> o9o9o9 , better readable 2021-01-04 16:10:43 +01:00
Kay Marquardt (Gnadelwartz)
0798f1ae00 bashbot.sh implement new a-z soluition 2021-01-04 16:03:53 +01:00
Kay Marquardt (Gnadelwartz)
8a095bc79f doc: add known locale problems 2021-01-04 14:49:04 +01:00
Kay Marquardt (Gnadelwartz)
966ee5d5a7 modules/jsonDB: activate stripping of not allowed keys 2021-01-04 12:49:43 +01:00
Kay Marquardt (Gnadelwartz)
e072afac41 modules/jsonDB: add Jssh_stripKey 2021-01-04 12:40:14 +01:00
Kay Marquardt (Gnadelwartz)
5ad7be59ba *IMPORTANT* fix for ranges a-z dependig on locale! 2021-01-04 12:38:20 +01:00
Kay Marquardt (Gnadelwartz)
11daa4890d Bashbot Version 1.21 (cleanup release) 2021-01-03 22:39:36 +01:00
Kay Marquardt (Gnadelwartz)
a5307e3a94 doc: better explanation of $ RCE 2020-12-29 13:03:46 +01:00
Kay Marquardt (Gnadelwartz)
cf6f3eedd7 doc: remove old stuff part 2 2020-12-29 11:02:28 +01:00
Kay Marquardt (Gnadelwartz)
8c67bb76c4 provide send_file error 2020-12-28 13:09:28 +01:00
Kay Marquardt (Gnadelwartz)
a4dce7bb5a myfilelocationstartshere -> myfilestartshere 2020-12-28 12:29:38 +01:00
Kay Marquardt (Gnadelwartz)
de31231a24 printf part 2 2020-12-26 21:29:16 +01:00
Kay Marquardt (Gnadelwartz)
239dd769c2 Version 1.20 2020-12-25 21:47:08 +01:00
Kay Marquardt (Gnadelwartz)
88d1de2009 fix bashbot tests 2020-12-25 20:08:29 +01:00
Kay Marquardt (Gnadelwartz)
709e26bc7c \n part 2 2020-12-24 20:02:01 +01:00
Kay Marquardt (Gnadelwartz)
c39c1ca8f9 file caption does not support \n 2020-12-24 18:20:39 +01:00
Kay Marquardt (Gnadelwartz)
f762d22958 fix: jssjDB path must not contain more than one .. 2020-12-16 17:46:55 +01:00
Kay Marquardt (Gnadelwartz)
d1f2bc8137 escape more reserved characters for markdown v2 2020-12-14 17:53:47 +01:00
Kay Marquardt (Gnadelwartz)
c8f61afda9 fix misspelled internal function 2020-12-13 18:25:46 +01:00
Kay Marquardt (Gnadelwartz)
da7b1bccbf fix misst quotaion mark in _formated_message_url 2020-12-13 18:07:27 +01:00
Kay Marquardt (Gnadelwartz)
a25f876a06 fix editMessage parameter desc 2020-12-13 17:25:44 +01:00
Kay Marquardt (Gnadelwartz)
4f600e26de first editMessage implementation 2020-12-13 17:19:52 +01:00
Kay Marquardt (Gnadelwartz)
898a794cb2 prepare for editMessage 2020-12-13 16:23:03 +01:00
Kay Marquardt (Gnadelwartz)
975d0147f4 remove old workaround preventing interactive to work 2020-12-13 15:26:48 +01:00
Kay Marquardt (Gnadelwartz)
b0281f1f32 fix bot_is_admin 2020-12-03 14:25:32 +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)
95b2b9a79d detect if no curl AND no wget 2020-11-29 17:20:57 +01:00
Gnadelwartz
b5caff0a32 statisfy newer shellcheck version 2020-11-29 15:34:00 +01:00
Kay Marquardt (Gnadelwartz)
a749d2907e extend _is_allowed: ALL means every user 2020-11-03 12:21:11 +01:00
Kay Marquardt (Gnadelwartz)
b941d06f10 bashbot version 1.1 2020-09-23 15:55:48 +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)
25a33b3731 Bashbot Version 1.0 2020-08-15 09:29:13 +02:00
Kay Marquardt (Gnadelwartz)
682f3941e3 warn if old send_keyboard format is detected 2020-08-08 17:58:18 +02:00
Kay Marquardt (Gnadelwartz)
afbdb1e7a5 fix formatted message longer 4095 2020-08-02 10:03:35 +02:00
Kay Marquardt (Gnadelwartz)
aec73450af correct/beautify misspelled comments 2020-08-01 09:10:14 +02:00
Kay Marquardt (Gnadelwartz)
15eb3116b7 add warning for long and formated messages 2020-08-01 08:47:32 +02:00
Kay Marquardt (Gnadelwartz)
3daf84dad8 Bashbot Version 0.99 2020-07-27 18:14:18 +02:00
Kay Marquardt (Gnadelwartz)
487deee08c final debug msgs 2020-07-04 09:18:28 +02:00
Kay Marquardt (Gnadelwartz)
ca765afa32 shorter debug message 2020-07-04 08:56:58 +02:00
Kay Marquardt (Gnadelwartz)
550387bdbc Bashbot Version 0.98 2020-07-01 12:23:57 +02:00
Kay Marquardt (Gnadelwartz)
5b5447e4bb shorter and clearer debug messages from background.sh 2020-07-01 12:07:00 +02:00
Kay Marquardt (Gnadelwartz)
d24ef50fd4 fix dist standalone, make shellcheck happy 2020-06-28 23:02:58 +02:00
Kay Marquardt (Gnadelwartz)
1666cac184 overhaul chatMember 2020-06-28 16:40:35 +02:00
Kay Marquardt (Gnadelwartz)
4b3363f603 more places with debug_checks 2020-06-28 08:52:02 +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)
3569a761e1 remove sendEmpty 2020-06-27 15:37:09 +02:00
Kay Marquardt (Gnadelwartz)
bee55fec78 use log_error in send_message.sh 2020-06-27 12:49:20 +02:00
Kay Marquardt (Gnadelwartz)
7618b38ee3 remove_keyboard in background 2020-06-27 08:14:35 +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)
e3151626c0 first working version of send album for URLs 2020-06-26 08:26:52 +02:00
Kay Marquardt (Gnadelwartz)
571fb9c3c8 remove unneeded set +x 2020-06-25 15:39:40 +02:00
Kay Marquardt (Gnadelwartz)
ea92c55c0c solution for #133 without harm old implemenation 2020-06-25 13:34:31 +02:00
Kay Marquardt (Gnadelwartz)
03700cdbc2 array2Json convert newline to \n in case string contains newline 2020-06-24 16:36:33 +02:00
Kay Marquardt (Gnadelwartz)
d2a578a757 codespell is much better 2020-06-23 16:35:50 +02:00
Kay Marquardt (Gnadelwartz)
afa8d874e3 telegram removes keyboard if we remove text 2020-06-22 23:51:07 +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)
0b8c0476db fix replacement of \n 2020-06-20 13:19:45 +02:00
Kay Marquardt (Gnadelwartz)
8f03835ccc harmonize background log messages 2020-06-20 10:16:12 +02:00
Kay Marquardt (Gnadelwartz)
fa6ad3e6a8 fix getKeyDB 2020-06-19 22:43:52 +02:00
Kay Marquardt (Gnadelwartz)
21f29a496f send_messages split messages >4096 at last newline 2020-06-19 20:57:59 +02:00
Kay Marquardt (Gnadelwartz)
e4d13fd92d convert newlines to STRING \n when send to telegra 2020-06-19 18:50:55 +02:00
Kay Marquardt (Gnadelwartz)
5dcc7ef3f6 jsonDB check for empty filename always 2020-06-19 11:13:36 +02:00
Kay Marquardt (Gnadelwartz)
30eedcffb1 fix updateArray check for empty array 2020-06-18 14:33:13 +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)
3cd8dc91ae readDB on empty array given to updateArray 2020-06-18 11:48:24 +02:00
Kay Marquardt (Gnadelwartz)
413779dede fix deleteKeyDB after conversion 2020-06-16 08:39:54 +02:00
Kay Marquardt (Gnadelwartz)
5dcbccd236 simplify updateArray 2020-06-16 08:31:32 +02:00
Kay Marquardt (Gnadelwartz)
70e7ee4bc1 only one message on suspend/resume jobs 2020-06-16 07:03:47 +02:00
Kay Marquardt (Gnadelwartz)
b33132ea5e inform dot admin about stop, resume, restart 2020-06-15 20:07:43 +02:00
Kay Marquardt (Gnadelwartz)
6439d435c2 jssh no more double implementation of complex functions 2020-06-15 11:23:43 +02:00
Kay Marquardt (Gnadelwartz)
24a7eaa8dd cache botconfig, optimze updateArray 2020-06-15 09:09:08 +02:00
Kay Marquardt (Gnadelwartz)
4e043c5717 fix updateArray, new flock use method 2020-06-14 21:26:45 +02:00
Kay Marquardt (Gnadelwartz)
852ab9de16 adjust modules coment 2020-06-14 20:56:46 +02:00
Kay Marquardt (Gnadelwartz)
dda5b6d10e make jsonDB.sh independent from bashbot 2020-06-14 20:44:11 +02:00
Kay Marquardt (Gnadelwartz)
2af9d76ea7 jssh_updateArray update array only if file has changed 2020-06-14 20:36:14 +02:00
Kay Marquardt (Gnadelwartz)
cc69310a7e countKey optimze fast path 2020-06-14 17:39:18 +02:00
Kay Marquardt (Gnadelwartz)
2281943940 optimze countKeyDB_async 2020-06-14 17:00:41 +02:00
Kay Marquardt (Gnadelwartz)
e0b9f6f870 create setconfigKey, clean botconfig on update startup 2020-06-13 21:39:52 +02:00
Kay Marquardt (Gnadelwartz)
ca0509556a fix/optimize getKey functions 2020-06-13 18:40:34 +02:00
Kay Marquardt (Gnadelwartz)
e0470aadc0 move Json2Arru and Array2Json to jsshDB module 2020-06-13 17:56:43 +02:00
Kay Marquardt (Gnadelwartz)
8affc94813 start 0.98 dev, create botconfig db 2020-06-12 21:18:32 +02:00
Kay Marquardt (Gnadelwartz)
f2a1d9f32f fix v0.96 jssh_updateKey 2020-06-12 19:18:22 +02:00
Kay Marquardt (Gnadelwartz)
15e6c7bcbe Version 0.96 2020-06-12 11:11:17 +02:00
Kay Marquardt (Gnadelwartz)
f4c1657270 fix keyDB_async, count cleanup only on bot start 2020-06-10 09:32:53 +02:00
Kay Marquardt (Gnadelwartz)
6d940c7cc8 fix jsshGetKey 2020-06-09 22:45:34 +02:00
Kay Marquardt (Gnadelwartz)
f96625ef9d explanation for BOTSEND_RETRY explanation and why printf 2020-06-09 11:57:25 +02:00
Kay Marquardt (Gnadelwartz)
b01e3e91b6 prepare for release, start cleanup and optimizing 2020-06-09 09:15:36 +02:00
Kay Marquardt (Gnadelwartz)
6f86036809 more sendJson error handling, rearrange source modules 2020-06-08 12:58:36 +02:00
Kay Marquardt (Gnadelwartz)
601fe0ea51 interactive working again, more logging 2020-06-07 13:30:59 +02:00
Kay Marquardt (Gnadelwartz)
3f85134d2f simplyfy start_proc, may fix interactive also 2020-06-07 09:31:03 +02:00
Kay Marquardt (Gnadelwartz)
515e07de5d fix suspend/kill background jobs 2020-06-07 09:10:02 +02:00
Kay Marquardt (Gnadelwartz)
4407ccf8ad no more named pipe for background 2020-06-06 23:01:11 +02:00
Kay Marquardt (Gnadelwartz)
407e1476a3 add jssh_clearBD 2020-06-05 22:13:18 +02:00
Kay Marquardt (Gnadelwartz)
bc74141db7 _async for every jssh function, use async in bashbot.sh 2020-06-05 09:01:20 +02:00
Kay Marquardt (Gnadelwartz)
31b3203483 fix problems found by tests 2020-06-01 11:50:42 +02:00
Kay Marquardt (Gnadelwartz)
46748ee4b8 revert shellcheck tip for send_message, sed is faster 2020-05-31 11:55:08 +02:00
Kay Marquardt (Gnadelwartz)
6d1e7cc065 jsonDB updates: insertKey, use builtin alias, fix updateDB_async, fix shellcheck hints 2020-05-31 11:04:38 +02:00
Kay Marquardt (Gnadelwartz)
67b9039d51 fix not working jssh_updateDB 2020-05-27 09:06:22 +02:00
Kay Marquardt (Gnadelwartz)
e63590b9b4 extended JsonEscape for V2 2020-05-20 16:38:56 +02:00
Kay Marquardt (Gnadelwartz)
01539286d1 revert old commands.sh 2020-05-20 16:35:22 +02:00
Kay Marquardt (Gnadelwartz)
7e83e5dd1c markdownv2 is not ccompatible, jssh_getKey 2020-05-20 15:18:23 +02:00
Kay Marquardt (Gnadelwartz)
a4636668a7 optimized version of countKeyDB 2020-05-19 19:26:10 +02:00
Kay Marquardt (Gnadelwartz)
b6f36c6e7a add jssh_countKeyDB function 2020-05-19 18:21:56 +02:00
Kay Marquardt (Gnadelwartz)
4b36432d09 Start 0.96-dev, use MarkdownV2 2020-05-19 17:48:18 +02:00
Kay Marquardt (Gnadelwartz)
f8f59a3cab revert v2 for master 2020-05-19 17:37:26 +02:00
Kay Marquardt (Gnadelwartz)
a055b775d7 use MarkdownV2 2020-05-19 17:32:29 +02:00
Kay Marquardt (Gnadelwartz)
7aa409fbc8 Version 0.94 2020-05-17 13:51:32 +02:00
Kay Marquardt (Gnadelwartz)
93f49665aa botadmin is also an admin, better default for /start command 2020-05-16 08:49:36 +02:00
Kay Marquardt (Gnadelwartz)
f13a2d05cc almost finished for 0.94 2020-05-15 18:52:12 +02:00
Kay Marquardt (Gnadelwartz)
aaa71c80d6 fix deleteKeyDB 2020-05-15 18:49:38 +02:00
Kay Marquardt (Gnadelwartz)
c02327f7a1 use flock for atomic, update doc 2020-05-15 17:45:23 +02:00
Kay Marquardt (Gnadelwartz)
ac9ca6049e jsshDB atomic write, fix testdata 2020-05-15 11:53:19 +02:00
Kay Marquardt (Gnadelwartz)
d1f509a00f add jssh_prinDB and BG send_action 2020-05-14 23:04:08 +02:00
Kay Marquardt (Gnadelwartz)
284172fc10 allow DATA for jssh, add mycommands.sh.clean to shellcheck 2020-05-14 22:12:44 +02:00
Kay Marquardt (Gnadelwartz)
64efe96117 allow jsshDB files in BASHBOT_DATA also 2020-05-14 22:00:05 +02:00
Kay Marquardt (Gnadelwartz)
1e0de91a2d fix is_botadmin vs. is_admin, again 2020-05-14 21:46:02 +02:00
Kay Marquardt (Gnadelwartz)
0e75138548 optimize startup and testing for empty string 2020-05-14 20:33:30 +02:00
Kay Marquardt (Gnadelwartz)
c0a633f42d optimze sourcing of modules 2020-05-14 19:47:37 +02:00
Kay Marquardt (Gnadelwartz)
8a119f8806 some small fixes, start dev3 2020-05-14 13:04:57 +02:00
Kay Marquardt
eef955abf3
is_botadmin compatibility when changed from is_admin
if is_admin is changed to is_botadmin and vice versa, the first argument stays with chatid ...
2020-05-14 12:10:37 +02:00
Kay Marquardt
2e446d91f6
Merge branch 'develop' into master 2020-05-14 12:05:08 +02:00
Kay Marquardt
b3d7918a15
fix nasty get_member_status bug, improve user_is_admin 2020-05-14 08:04:19 +02:00
Kay Marquardt (Gnadelwartz)
11acaaaa1a escape quote and other charaters in JSON strings 2020-01-18 14:41:09 +01:00
Kay Marquardt (Gnadelwartz)
4f90215465 start v9.4 dev2, fix html doc creation 2019-12-07 13:59:54 +01:00
Kay Marquardt (Gnadelwartz)
f9c107850a remove non UTF-8 characters on get and send strings 2019-12-07 13:03:27 +01:00
Kay Marquardt
91ad865c17
fix FILE-REGEX test 2019-11-27 08:58:45 +01:00
Kay Marquardt (Gnadelwartz)
9b9125c9cc jssh_updateDB without deleting existing values 2019-06-04 13:16:48 +02:00
Kay Marquardt (Gnadelwartz)
55c9d8bb4d jsshDB: read write single key/value pairs 2019-06-04 12:00:19 +02:00
Kay Marquardt (Gnadelwartz)
db03e23be8 v0.94-dev 2019-06-03 17:04:19 +02:00
Kay Marquardt (Gnadelwartz)
31808a9e4f Bashbot Version 0.91 2019-06-03 16:47:29 +02:00
Kay Marquardt (Gnadelwartz)
5ebfaccfa1 Bahsbot Version 0.90 2019-05-31 23:00:44 +02:00
Kay Marquardt (Gnadelwartz)
4297fc164b answer inline parse_mode 2019-05-31 22:20:22 +02:00
Kay Marquardt (Gnadelwartz)
46271cc1a2 Bashbot Version 0.90-rc1 2019-05-30 20:59:17 +02:00
Kay Marquardt (Gnadelwartz)
3a2f58c535 Bashbot Version 0.90-rc1 2019-05-30 20:11:05 +02:00