Commit Graph

1460 Commits

Author SHA1 Message Date
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
Drew 7bf1cfd0d9
Merge pull request #41 from fdaniele85/remove-keyboard
Add function remove_keyboard to disable the custom keyboard
2017-11-13 23:22:03 -05:00
Daniele Ferone fd08cd7873 Add function remove_keyboard to disable the custom keyboard 2017-11-11 08:51:49 +01:00
Hasan da181e4454 Merge pull request #39 from TiagoDanin/markdown
Applying new rule of GitHub Markdown
2017-08-26 21:31:33 -04:00
Tiago Danin 8dbaf9959b Applying new rule of GitHub Markdown 2017-08-26 21:28:32 -03:00
Daniil Gentili 1243c75757 Now messages with more than 4096 chars can also be sent 2016-10-25 15:58:09 +00:00
Daniil Gentili a566efc476 Remove escaping of slashes 2016-10-25 12:23:09 +00:00
Daniil Gentili b5c576633d Now the messages id can be accessed in MESSAGE[ID], all updates fetched with getUpdates are processed simultaneously and newlines and certain unicode codepoints are parsed correctly in messages (closes #21) 2016-10-24 22:13:52 +00:00
Matthew Hesketh e040558919 Minor formatting correction (#30)
Formatting correction
2016-09-27 12:21:19 +02:00
Daniil Gentili 034409c491 Fix bugs and update docs 2016-06-09 09:40:39 -04:00
Daniil Gentili 958456d64d Fix security problems 2016-06-09 14:11:33 +02:00
Daniil Gentili 9cdab60e70 Rename vars 2016-06-09 14:05:35 +02:00
jarriztg cd30d17f52 Here you have (#23)
first, test, if is 
CHAT[FIRST_NAME]=$(echo "$res" | egrep '\["result",0,"message","chat","first_name"\]' | cut -f 2 | cut -d '"' -f 2)
isnt working, but if is:
GROUP[FIRST_NAME]=$(echo "$res" | egrep '\["result",0,"message","chat","first_name"\]' | cut -f 2 | cut -d '"' -f 2)
is working, can you resolve them? if them have solution, dont marge this pullrequest
2016-06-09 14:04:33 +02:00
jarriztg f4f96d9863 sorry, small bug :P (#22)
* sorry, small bug :P

* Update commands.sh

* Update commands.sh

* Update commands.sh
2016-06-05 13:07:31 +02:00
jarriztg e654ec51ed Update commands.sh (#20)
* Update commands.sh

* Update commands.sh

* Update commands.sh

* Update commands.sh

* Update commands.sh
2016-06-05 12:42:20 +02:00
jarriztg d169b7f96f functions in bash added and colors (#19)
* functions in bash added and colors

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh
2016-06-05 12:41:49 +02:00
Pwrtelegram b2c5793032 Fixed bug in inline query function. 2016-05-27 17:09:22 +02:00
Pwrtelegram 9b64c3fae6 Fixed typo, fixed download file name, fixed sending of gifs trhu inline queries. 2016-05-27 15:52:34 +02:00
Daniil Gentili 78a57d9d9c Added INLINE variable 2016-05-13 17:58:37 +02:00
Daniil Gentili 0efec7dce1 Fixed bugs 2016-05-13 17:45:56 +02:00
Daniil Gentili bb768b4596 Merge pull request #16 from TiagoDanin/patch-2
README Update line of location
2016-05-06 14:18:59 +02:00
Tiago Danin c5a89828fc Update README.md 2016-05-05 15:13:39 -03:00
Daniil Gentili 6c66639277 Fix typo 2016-05-05 15:40:56 +02:00
topkecleon d30c87a44d Updated readme. 2016-04-19 15:01:01 -04:00
topkecleon c840e3581e Main script will now download JSON.sh if the user did not clone recursively. 2016-04-19 05:59:37 -04:00
topkecleon 62c3d5eb84 Added a license for the unfortunate souls whose governments don't allow public domain.
Removed JSON.sh and added the project as a submodule. Modified code referencing it accordingly.

Added "attach" argument to attach to the tmux session and a default message if no argument is given.

Other minor changes.
2016-04-19 05:49:35 -04:00
Daniil Gentili 55bf7e35a9 Fix perms 2016-04-18 12:05:59 +02:00
Daniil Gentili dfd4bc6fa6 Moved customizable settings into commands.sh 2016-04-18 12:05:31 +02:00
Drew aebbff855c Merge pull request #14 from iicc1/patch-4
Updated readme with inline
2016-04-18 02:27:52 -04:00
Ignacio Iglesias bd14114971 updated readme with inline 2016-04-18 00:50:50 +02:00
Daniil Gentili c09ae5036e Merge pull request #13 from TiagoDanin/patch-1
Whoops :). Merged.
2016-04-17 21:31:15 +02:00
Tiago Danin e053481a41 FIX README 2016-04-17 20:16:14 +02:00
Daniil Gentili 867180363c Fix perms 2016-04-17 20:01:05 +02:00
Daniil Gentili fd1358b209 Added sendvenue method and moved command parsing section to commands.sh to ease upgrades. 2016-04-17 20:00:37 +02:00