Commit Graph

343 Commits

Author SHA1 Message Date
Kay Marquardt
b27017f6c9
Merge branch 'sed-JSON' into master 2019-03-30 15:02:29 +01:00
Kay Marquardt (Gnadelwartz)
cb5cb646ab fix quoting in bashbot.sh 2019-03-29 18:06:10 +01:00
Kay Marquardt (Gnadelwartz)
8e08c1f9fe fix bad quoting 2019-03-29 17:59:57 +01:00
Kay Marquardt (Gnadelwartz)
6f1c32817a follow my own rule: quote whenver possible 2019-03-29 17:52:00 +01:00
Kay Marquardt (Gnadelwartz)
0a90edbe52 Security considerations and Typos 2019-03-28 20:59:52 +01:00
Kay Marquardt (Gnadelwartz)
851be83518 prepare for v0.5, add version numbers to files 2019-03-28 16:51:33 +01:00
Kay Marquardt (Gnadelwartz)
64255eb17c fix echo -" 2019-03-28 14:29:33 +01:00
Kay Marquardt (Gnadelwartz)
272fc0b311 Merge branch 'master' of https://github.com/topkecleon/telegram-bot-bash 2019-03-28 14:25:45 +01:00
Kay Marquardt (Gnadelwartz)
2d1a0c3be0 make bashbot.sh not output colors and clear when not interactive 2019-03-28 14:24:08 +01:00
Drew
572b56a7df
tweak readme contribution 2019-03-27 11:53:33 -04:00
Kay Marquardt (Gnadelwartz)
7919be2e3e init changes username in bashbot.rc also 2019-03-27 15:03:02 +01:00
Kay Marquardt (Gnadelwartz)
b88043c64a cron comments on seperate lines only 2019-03-27 11:07:46 +01:00
Kay Marquardt (Gnadelwartz)
aa391e24ba 24716 is not random enough 2019-03-26 20:50:17 +01:00
Kay Marquardt (Gnadelwartz)
2852e7875a more random tmp file name 2019-03-26 20:35:42 +01:00
Kay Marquardt (Gnadelwartz)
d6b640ec11 experimental fast conversion of JSON 2019-03-26 17:49:47 +01:00
Kay Marquardt
bbeccb0745
Merge pull request #63 from gnadelwartz/master
init: apply permissions recursive
2019-03-25 18:30:24 +01:00
Kay Marquardt (Gnadelwartz)
bea3c80c3f init: apply permissions recursive 2019-03-25 18:29:10 +01:00
Kay Marquardt
49972bccda
Merge pull request #62 from gnadelwartz/master
Expert use: Run as system service or from cron
2019-03-25 15:28:50 +01:00
Kay Marquardt (Gnadelwartz)
df930b7782 fix typo's in readme 2019-03-25 15:22:28 +01:00
Kay Marquardt (Gnadelwartz)
a4374e1d33 Expert use: Run as system service or from cron 2019-03-25 15:12:13 +01:00
Kay Marquardt (Gnadelwartz)
51df0a9b92 explain usage of send_xxx_message 2019-03-25 14:16:03 +01:00
Kay Marquardt
492de26344
Merge pull request #61 from gnadelwartz/master
fix restart in rc file, add init command to setup bashbot environment
2019-03-25 12:26:04 +01:00
Kay Marquardt (Gnadelwartz)
b29dc39059 init command 2019-03-25 11:15:07 +01:00
Kay Marquardt (Gnadelwartz)
474a010670 fix restart in rc file, add init command to setup bashbot environment 2019-03-25 11:11:22 +01:00
Kay Marquardt
cd3a5c7845
Merge pull request #60 from gnadelwartz/master
add example startup/init script and crontab
2019-03-25 07:26:44 +01:00
Kay Marquardt
2be574e668
Merge pull request #59 from gnadelwartz/master
add root warning, explaning UTF-8 handling
2019-03-24 19:32:50 +01:00
Kay Marquardt (Gnadelwartz)
eff4a68c70 add example startup/init script and crontab 2019-03-24 19:31:54 +01:00
Kay Marquardt (Gnadelwartz)
a8fe8b3b19 add root warning, explaning UTF-8 handling 2019-03-24 13:57:49 +01:00
Kay Marquardt
12a0d4af5b
Merge pull request #58 from gnadelwartz/reply-forward
Reply: Provide Information about original User and Message
2019-03-24 13:49:48 +01:00
Kay Marquardt
618ce128bb
Merge pull request #56 from gnadelwartz/master
make bashbot more failsave on startup plus more ...
2019-03-24 08:01:30 +01:00
Kay Marquardt (Gnadelwartz)
c7fd6de725 optimize replied and forwarded message parsing 2019-03-22 20:41:34 +01:00
Kay Marquardt (Gnadelwartz)
3847ff5468 provide information about replied and forwarded messages 2019-03-22 20:30:22 +01:00
Kay Marquardt (Gnadelwartz)
057f0e74c0 remove debug code 2019-03-22 17:50:53 +01:00
Kay Marquardt (Gnadelwartz)
8d3a0e497d make bashbot more failsave on startup 2019-03-22 17:47:36 +01:00
Drew
b641a96711
Merge pull request #53 from gnadelwartz/gnadelwartz-patch-2
Add delete message support
2019-03-22 09:32:02 -04:00
Drew
c6419c58dd
Merge pull request #54 from gnadelwartz/patch-2
line breaks in startproc scripts
2019-03-22 09:31:53 -04:00
Drew
2eebe67e32
Merge pull request #55 from gnadelwarty/master
extend start/killproc to allow multiple background jobs
2019-03-22 09:31:28 -04:00
Kay Marquardt (Gnadelwartz)
fd5f9d4ff0 remove unneeded variable from killback 2019-03-18 22:21:53 +01:00
Kay Marquardt (Gnadelwartz)
3b25adfeb2 add command line option to kill all background jobs 2019-03-18 22:19:44 +01:00
Kay Marquardt (Gnadelwartz)
bc58dfb63d fix stopping bg jobs in readme.md 2019-03-18 20:28:34 +01:00
Kay Marquardt (Gnadelwartz)
78ee89d3c2 mention background jobs in readme.md 2019-03-18 20:23:20 +01:00
Kay Marquardt (Gnadelwartz)
a84b26a236 command line option to (re)start background processes 2019-03-18 20:00:16 +01:00
Kay Marquardt (Gnadelwartz)
e5d0b5d216 add examples for background and checkproc to commands.sh 2019-03-18 15:32:17 +01:00
Kay Marquardt (Gnadelwartz)
b181234bb9 add possibility to execute multiple background scripts 2019-03-18 14:45:19 +01:00
Kay Marquardt
a0bedbc207
line breaks in startproc scripts 2019-03-14 21:07:27 +01:00
Kay Marquardt
9d149bde7a
Add delete message support
since API v3 its possible to delete bot messages or any message if your bot is admin.
2019-03-11 15:41:21 +01:00
Drew
3e603a2ee7
Merge pull request #52 from gnadelwartz/patch-1
Fix quoting and use curl builtin urlencode
2019-03-09 10:01:55 -05:00
Kay Marquardt
44d96a9b8b
quote message also in case statement
I don't now if its needed, but in my try to find the error in my commands.sh version, I also quoted the $MESSAGE in the case statement.
Since it does not hurt it seems to be on the safe side.
2019-02-28 20:26:26 +01:00
Kay Marquardt
dfdbb5f599
use curl --data-urlencode instead of own urlencode
When sending HTML with send_HTML_message  content it is displayed as is and not interpreted as HTML. using the curl biulting urlencode fixed it.
2019-02-28 20:18:23 +01:00
Kay Marquardt
14b684daa9
fix quoting to avoid globbing
If in  the3 bot recieve a message containing a single '*' a directorly linsting is inserted in the Message, e.g. 'this is a *' expands to:

'this is a this is a bashbot.sh commands.sh count JSON.sh LICENSE question README.md token'
2019-02-28 20:11:31 +01:00