Commit Graph

372 Commits

Author SHA1 Message Date
Kay Marquardt (Gnadelwartz)
6651cf4f0a _is_function process_inline is always true 2019-05-28 21:28:58 +02:00
Kay Marquardt (Gnadelwartz)
afc669c915 make some globals readonly 2019-05-28 21:12:02 +02:00
Kay Marquardt (Gnadelwartz)
cb3f3e32f3 use declare -x 2019-05-28 20:50:19 +02:00
Kay Marquardt (Gnadelwartz)
f2f5e11610 TMPDIR is used from BASH -> DATADIR 2019-05-28 20:44:40 +02:00
Kay Marquardt (Gnadelwartz)
9e020a9644 Array2Json, module jsshDB.sh 2019-05-27 14:30:21 +02:00
Kay Marquardt (Gnadelwartz)
bbbc8aece1 add EVENT_TEXT and EVENT_CMD 2019-05-27 12:27:09 +02:00
Kay Marquardt (Gnadelwartz)
cfdcb41a38 final _exec_if_function, fix env_test 2019-05-26 21:25:01 +02:00
Kay Marquardt (Gnadelwartz)
3c6b2d3b35 execute_function: execute function if exist 2019-05-26 18:22:31 +02:00
Kay Marquardt (Gnadelwartz)
d23bb28ebc execute event only if function exist 2019-05-26 17:57:12 +02:00
Kay Marquardt (Gnadelwartz)
b60f33afac fix EVENT typo and order 2019-05-26 17:40:51 +02:00
Kay Marquardt (Gnadelwartz)
483da5a797 finally fix send_message test 2019-05-26 17:03:58 +02:00
Kay Marquardt (Gnadelwartz)
981c0eec01 dev2, fix test for send_message 2019-05-26 16:50:19 +02:00
Kay Marquardt (Gnadelwartz)
ec856365ed check if send_message is availible 2019-05-25 20:11:50 +02:00
Kay Marquardt (Gnadelwartz)
bee9f33022 basic infrastructure for addons ready 2019-05-25 19:31:20 +02:00
Kay Marquardt (Gnadelwartz)
7bad01b258 fix tests, start addon implementation 2019-05-25 17:02:25 +02:00
Kay Marquardt (Gnadelwartz)
15e7f014bd add file description to doc 2019-05-24 16:49:11 +02:00
Kay Marquardt (Gnadelwartz)
f019ab190f sync again with master 2019-05-24 16:26:35 +02:00
Kay Marquardt (Gnadelwartz)
6b886562f7 sync with master 2019-05-24 16:21:51 +02:00
Kay Marquardt (Gnadelwartz)
b268e4dafe backport getBotname for new installations 2019-05-24 16:17:47 +02:00
Kay Marquardt (Gnadelwartz)
48022e4ed2 fix small typo 2019-05-24 16:13:31 +02:00
Kay Marquardt (Gnadelwartz)
31c6c4b111 add test URL for getMe 2019-05-24 10:47:27 +02:00
Kay Marquardt (Gnadelwartz)
3808496b32 fix missing ME on startup 2019-05-23 20:05:42 +02:00
Kay Marquardt (Gnadelwartz)
cb77d411a8 autodetect sourcing, add CURL and WGET options, e.g. for using tor 2019-05-23 19:40:15 +02:00
Kay Marquardt (Gnadelwartz)
e0bb9f85e1 fix bashbot.sh source errors and update documentation 2019-05-23 13:32:13 +02:00
Kay Marquardt (Gnadelwartz)
80a47780ce Add BASHBOT_HOME, commandline examples 2019-05-23 12:26:53 +02:00
Kay Marquardt (Gnadelwartz)
51aa2ed4b3 fix shell exit on sourcing without arg source 2019-05-23 10:50:39 +02:00
Kay Marquardt (Gnadelwartz)
5e6d62f19f start 0.90-dev - convert to array 2019-05-22 18:43:20 +02:00
Kay Marquardt (Gnadelwartz)
75691dc685 Bashbot Version 0.80 2019-05-22 16:28:06 +02:00
Kay Marquardt (Gnadelwartz)
5bce3f7151 some small optimization 2019-05-22 10:01:39 +02:00
Kay Marquardt (Gnadelwartz)
d8e0b5c975 fix get_file 2019-05-22 09:50:48 +02:00
Kay Marquardt (Gnadelwartz)
e08b52e043 Bashbot Version 0.80-rc 2019-05-21 17:50:02 +02:00
Kay Marquardt (Gnadelwartz)
5b2d0e1e8f improved kill handling, fix job_control 2019-05-21 10:53:52 +02:00
Kay Marquardt (Gnadelwartz)
fd7ca77cc1 move job control to module background and make it more failsave 2019-05-20 21:40:14 +02:00
Kay Marquardt (Gnadelwartz)
8dfdf2e168 more save resumeback killback handling 2019-05-20 20:48:49 +02:00
Kay Marquardt (Gnadelwartz)
f1ebdbb72d remove tmux (c) and tmux example 2019-05-20 19:49:41 +02:00
Kay Marquardt (Gnadelwartz)
300553f8ba move _botadmin back to aliases 2019-05-20 19:16:00 +02:00
Kay Marquardt (Gnadelwartz)
d34c22f156 function download(), downloads URL to file in data-bot-bash 2019-05-20 18:42:21 +02:00
Kay Marquardt (Gnadelwartz)
e5f7b2da50 fix send_file, add test for send_file 2019-05-20 17:26:21 +02:00
Kay Marquardt (Gnadelwartz)
d1a3372d39 better kill handling, add send_file tests 2019-05-20 15:43:37 +02:00
Kay Marquardt (Gnadelwartz)
3c5ffdb506 test if script/job exist and is executable, more cleanup on startup 2019-05-20 12:12:11 +02:00
Kay Marquardt (Gnadelwartz)
9482bd62bf better explanation for not upgraded bot running 2019-05-20 11:09:44 +02:00
Kay Marquardt (Gnadelwartz)
b8ae9eca87 0.80-pre, adjust doc, convert echo with parameters to fprint 2019-05-20 10:50:51 +02:00
Kay Marquardt (Gnadelwartz)
7190c6e330 fix outproc exit and show script on ps 2019-05-19 17:31:55 +02:00
Kay Marquardt (Gnadelwartz)
beb77a4b65 start, kill, resume, suspend now working 2019-05-19 15:03:44 +02:00
Kay Marquardt (Gnadelwartz)
83623ece2e fix interactive and MESSAGE extraction 2019-05-19 13:59:36 +02:00
Kay Marquardt (Gnadelwartz)
e7d2effc27 working background jobs, fix old pipes 2019-05-19 12:54:59 +02:00
Kay Marquardt (Gnadelwartz)
a3c0d3165c move procname and proclist, replace echo with cat for output to file 2019-05-19 10:52:44 +02:00
Kay Marquardt (Gnadelwartz)
a1a823b4b6 fix background execution 2019-05-18 21:06:29 +02:00
Kay Marquardt (Gnadelwartz)
bccd064516 start dev3 - remove tmux 2019-05-18 20:25:18 +02:00
Kay Marquardt (Gnadelwartz)
31a5d00a64 Bashbot Version 0.76 2019-05-16 17:06:58 +02:00
Kay Marquardt (Gnadelwartz)
61a1f6f626 Bashbot Version 0.76 2019-05-16 17:01:54 +02:00
Kay Marquardt (Gnadelwartz)
e8a1fd0bf1 Bashbot Version 0.76 2019-05-16 16:57:04 +02:00
Kay Marquardt (Gnadelwartz)
6d497d5f5e remove send_message at bot startup 2019-05-16 16:55:32 +02:00
Kay Marquardt (Gnadelwartz)
a72f24ac9c some fixes to wget fallback 2019-05-16 16:42:38 +02:00
Kay Marquardt (Gnadelwartz)
d01addf0a9 replace unusual command by id, remove phyton tests 2019-05-16 11:23:27 +02:00
Kay Marquardt (Gnadelwartz)
d5994166c0 update doc 2019-05-14 20:55:24 +02:00
Kay Marquardt (Gnadelwartz)
eb0cde55df add documentaion and ENV for wget and Telegram URL 2019-05-14 19:58:59 +02:00
Kay Marquardt (Gnadelwartz)
aacdc76af2 SendJson bash only, no more python! 2019-05-14 17:56:23 +02:00
Kay Marquardt (Gnadelwartz)
bce7f1a6dc replace all curl calls, add wget as curl replacement 2019-05-14 15:25:15 +02:00
Kay Marquardt (Gnadelwartz)
df03727e14 some fixes for updates from older versions 2019-05-14 13:16:58 +02:00
Kay Marquardt (Gnadelwartz)
5f945e5e0a more strict checks for send_file 2019-05-13 12:47:03 +02:00
Kay Marquardt (Gnadelwartz)
e9cf8d25e5 fix old errors found while factor out send_message to module 2019-05-13 11:24:42 +02:00
Kay Marquardt (Gnadelwartz)
92f022d038 fix source commands.sh, fix sendJson, sendMEssage module 2019-05-12 17:51:52 +02:00
Kay Marquardt (Gnadelwartz)
acee08deff fix commands.sh in process_message 2019-05-12 17:11:58 +02:00
Kay Marquardt (Gnadelwartz)
d08d91205d move process_inline to bashbot.sh, documentation make-standalone.sh 2019-05-11 18:36:40 +02:00
Kay Marquardt (Gnadelwartz)
e492da05f7 add make-standalone.sh, creates old style minimal bashbot files 2019-05-11 12:07:06 +02:00
Kay Marquardt (Gnadelwartz)
0c5e3dd597 develop v0.80-dev2 2019-05-10 21:44:13 +02:00
Kay Marquardt (Gnadelwartz)
db14eb990a Bashbot Version 0.72 2019-05-10 19:09:03 +02:00
Kay Marquardt (Gnadelwartz)
67c47ac785 Bashbot Version 0.72 2019-05-10 18:50:30 +02:00
Kay Marquardt (Gnadelwartz)
73b7734fa3 add debug mode, remove old test mode 2019-05-10 11:33:41 +02:00
Kay Marquardt (Gnadelwartz)
65b32aa2bd refactor JSON generation of common args 2019-05-09 16:48:38 +02:00
Kay Marquardt (Gnadelwartz)
9b850002ef prepare for 0.72 release with working inline query 2019-05-09 14:49:23 +02:00
Kay Marquardt (Gnadelwartz)
cbdfc7c945 fix save messages 2019-05-02 23:42:28 +02:00
Kay Marquardt (Gnadelwartz)
66c390e481 remove debug +x 2019-05-02 17:51:37 +02:00
Kay Marquardt (Gnadelwartz)
5b8f2a2118 fix iQUERY[0] 2019-05-02 17:28:17 +02:00
Kay Marquardt (Gnadelwartz)
5cea14003f inline queries working as before 2019-05-02 15:14:18 +02:00
Kay Marquardt (Gnadelwartz)
9bcab666ce first version with inline query 2019-05-02 12:33:10 +02:00
Kay Marquardt (Gnadelwartz)
4e4194d4a4 start 0.80 dev 2019-05-02 11:10:55 +02:00
Kay Marquardt (Gnadelwartz)
e337b745bb Bashbot Version 0.70 2019-05-01 14:36:34 +02:00
Kay Marquardt (Gnadelwartz)
7c112122e8 add tests for ENV, fix some small nitpits 2019-05-01 11:46:57 +02:00
Kay Marquardt (Gnadelwartz)
4b69c4eaad Version v0.7 RC1 2019-04-30 15:50:23 +02:00
Kay Marquardt (Gnadelwartz)
4b83377905 v0.70-pre2, doc for examples 2019-04-29 19:34:47 +02:00
Kay Marquardt (Gnadelwartz)
bd4a1167e9 v0.70 pre1 2019-04-26 17:40:24 +02:00
Kay Marquardt (Gnadelwartz)
45f042d2cc buttons for send_message 2019-04-26 17:19:48 +02:00
Kay Marquardt (Gnadelwartz)
d6d640a3d9 optimize send_message 2019-04-26 16:45:39 +02:00
Kay Marquardt (Gnadelwartz)
d26a992ecb testsuite for send_message, fix 3 found problems 2019-04-26 14:41:49 +02:00
Kay Marquardt (Gnadelwartz)
81b540a4d5 some more conversion to sendJson 2019-04-26 13:19:34 +02:00
Kay Marquardt (Gnadelwartz)
a288a8d1d4 optimize sendJson usage 2019-04-26 12:26:34 +02:00
Kay Marquardt (Gnadelwartz)
c835e0516c more failsave module sourcing 2019-04-26 11:41:25 +02:00
Kay Marquardt (Gnadelwartz)
d08d581312 ajust develop and environmen doc 2019-04-26 11:17:42 +02:00
Kay Marquardt (Gnadelwartz)
034274c8d9 convert more send_ functions to sendJson 2019-04-25 17:46:47 +02:00
Kay Marquardt (Gnadelwartz)
8b8da67465 add documentation for inline keyboards 2019-04-25 16:59:17 +02:00
Kay Marquardt (Gnadelwartz)
8f4b1688bd more conversion to sendJson 2019-04-25 15:39:42 +02:00
Kay Marquardt (Gnadelwartz)
0f220bdbc8 fix delete of empty messages for keyboards 2019-04-25 15:17:35 +02:00
Kay Marquardt (Gnadelwartz)
96aae9d40e finally auto add only changed files ... 2019-04-25 14:45:16 +02:00
Kay Marquardt (Gnadelwartz)
2da31c1c6d minor test 2019-04-25 14:03:27 +02:00
Kay Marquardt (Gnadelwartz)
163635da75 minor test 2019-04-25 14:02:11 +02:00
Kay Marquardt (Gnadelwartz)
d55d311263 minor test 2019-04-25 14:01:42 +02:00
Kay Marquardt (Gnadelwartz)
fe4fb34e8a allow finish inline keyboard, allow keyboards without text 2019-04-25 13:54:31 +02:00
Kay Marquardt (Gnadelwartz)
a7d14f673c add send_inline_keyboard, start using sendJson 2019-04-24 18:24:54 +02:00
Kay Marquardt (Gnadelwartz)
991ecd44d8 first version of send_inline_button 2019-04-24 17:34:36 +02:00
Kay Marquardt (Gnadelwartz)
0cfb9f00dc adjust doc to mycommands and new section installation 2019-04-24 16:53:01 +02:00
Kay Marquardt (Gnadelwartz)
262bb9e805 more aliases, use aliases in commands.sh 2019-04-24 13:34:44 +02:00
Kay Marquardt (Gnadelwartz)
097a841961 factor out background, update doc 2019-04-24 10:17:29 +02:00
Kay Marquardt (Gnadelwartz)
92ad9e42fc factor out background update doc 2019-04-24 10:07:46 +02:00
Kay Marquardt (Gnadelwartz)
03f22c90c0 add _is_function 2019-04-23 20:37:15 +02:00
Kay Marquardt (Gnadelwartz)
56a45aa883 parse VCARD and VENUE from message 2019-04-23 19:00:17 +02:00
Kay Marquardt (Gnadelwartz)
ca73be8c41 rename tmp-bot-bash to data-bot-bash 2019-04-23 18:11:24 +02:00
Kay Marquardt (Gnadelwartz)
8549727aad user_is tests addded 2019-04-23 15:48:58 +02:00
Kay Marquardt (Gnadelwartz)
63ef6781a2 add simple check for correct JSON.sh and commands.sh file 2019-04-23 13:24:34 +02:00
Kay Marquardt (Gnadelwartz)
f412a2921a implement ENV varible usage 2019-04-23 13:07:20 +02:00
Kay Marquardt (Gnadelwartz)
1957133d9b test and optimize adaptive polling 2019-04-23 12:48:05 +02:00
Kay Marquardt (Gnadelwartz)
fe5840d3fc start evironment config 2019-04-23 11:45:03 +02:00
Kay Marquardt (Gnadelwartz)
893ee61d61 slower adaptive sleep in pesudo ms 2019-04-22 21:50:38 +02:00
Kay Marquardt (Gnadelwartz)
7ed47dd41b refactor options, startbot and init 2019-04-22 21:05:52 +02:00
Kay Marquardt (Gnadelwartz)
f59ddae610 start 0.7 dev2, add JSON.sh test 2019-04-22 20:34:43 +02:00
Kay Marquardt (Gnadelwartz)
4fff4c3319 Version 0.62 of bashbot 2019-04-22 10:23:28 +02:00
Kay Marquardt (Gnadelwartz)
1048d89648 prepare for sync with master 2019-04-22 10:19:16 +02:00
Kay Marquardt (Gnadelwartz)
bca3e591ec JSON.sh use brief output no empty arrays 2019-04-21 20:57:23 +02:00
Kay Marquardt (Gnadelwartz)
0422cb016d download json.sh only 2019-04-21 18:20:56 +02:00
Kay Marquardt (Gnadelwartz)
fbd86c3412 fix errors in JsonGet found by testsuite 2019-04-21 17:15:46 +02:00
Kay Marquardt (Gnadelwartz)
48e6f64d58 finalize process_message test 2019-04-21 14:52:55 +02:00
Kay Marquardt (Gnadelwartz)
26c8523589 fix first errors found by testsuite 2019-04-21 13:45:51 +02:00
Kay Marquardt (Gnadelwartz)
753f1b3b16 no zero byte files 2019-04-20 21:31:05 +02:00
Kay Marquardt (Gnadelwartz)
31834194ad some more init tests 2019-04-20 21:09:36 +02:00
Kay Marquardt (Gnadelwartz)
b1aef7d6f9 better handling of sourcing files 2019-04-20 16:26:16 +02:00
Kay Marquardt (Gnadelwartz)
074a10336f Merge branch 'master' into develop 2019-04-19 18:42:32 +02:00
Kay Marquardt (Gnadelwartz)
ba455af9f1 fix getting message count 2019-04-19 18:35:51 +02:00
Kay Marquardt (Gnadelwartz)
f53b8df40f start test framework 2019-04-19 17:31:01 +02:00
Kay Marquardt (Gnadelwartz)
b5a30dc2ba Version 0.61 of bashbot 2019-04-19 14:07:01 +02:00
Kay Marquardt (Gnadelwartz)
ef0041e7bd dev version 0.7 starts 2019-04-19 13:01:25 +02:00
Kay Marquardt (Gnadelwartz)
3fb7796c99 adjust bashbot and doc to changed dirs 2019-04-19 11:28:12 +02:00
Kay Marquardt (Gnadelwartz)
a97cd69402 rearrange example and dev files 2019-04-19 10:43:06 +02:00
Kay Marquardt (Gnadelwartz)
8bb14ec909 add pre-push hook 2019-04-18 21:02:06 +02:00
Kay Marquardt (Gnadelwartz)
209c4b34f4 Version 0.60 of bashbot 2019-04-18 10:35:18 +02:00
Kay Marquardt (Gnadelwartz)
f5162e2616 Version 0.60-rc3 2019-04-17 09:34:02 +02:00
Kay Marquardt (Gnadelwartz)
19a0f7eac3 add backward compatibility for keyboards from interactive chats 2019-04-16 21:56:46 +02:00
Kay Marquardt (Gnadelwartz)
2e3c9753fe Bashbot v0.60-rc2 2019-04-16 20:43:54 +02:00
Kay Marquardt (Gnadelwartz)
1bf26b9caf finalize features and descriptions 2019-04-16 13:29:49 +02:00
Kay Marquardt (Gnadelwartz)
e29924706d provide bashbot function reference 2019-04-15 21:06:29 +02:00
Kay Marquardt (Gnadelwartz)
ba80ec6976 fix showing text 2x times when upload file 2019-04-15 16:51:26 +02:00
Kay Marquardt (Gnadelwartz)
3824137433 fix / allow more complex keyboards 2019-04-15 16:32:56 +02:00
Kay Marquardt (Gnadelwartz)
bf97646361 dev3-rc1 candidate 2019-04-15 14:17:18 +02:00
Kay Marquardt (Gnadelwartz)
e18b200fe6 check if we can connect to telegram bot 2019-04-15 12:19:04 +02:00
Kay Marquardt (Gnadelwartz)
6be706b571 fix case problem with bash JsonDecode 2019-04-15 10:55:22 +02:00
Kay Marquardt (Gnadelwartz)
87ec24bceb Version 0.60-rc1 2019-04-14 23:05:43 +02:00
Kay Marquardt (Gnadelwartz)
c001d148f8 adjust doc, fix unneeded JsonDecode use 2019-04-14 23:04:17 +02:00
Kay Marquardt (Gnadelwartz)
7e75b92261 new interactive command calc 2019-04-14 20:30:59 +02:00
Kay Marquardt (Gnadelwartz)
f5538eff3a update doc, fix minor problem with CHAT[TYPE] 2019-04-14 17:43:12 +02:00
Kay Marquardt (Gnadelwartz)
5787908d72 pure bash implementaion of JsonDecode 2019-04-14 17:00:58 +02:00