You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,19 @@ Linted by [#ShellCheck](https://github.com/koalaman/shellcheck)
14
14
Uses [JSON.sh](http://github.com/dominictarr/JSON.sh) and the magic of sed.
15
15
16
16
Even bashbot is written in bash, it depends on commands typically available in a Unix/Linux Environment.
17
-
More concret on the common commands provided by recent versions of [coreutils](https://en.wikipedia.org/wiki/List_of_GNU_Core_Utilities_commands), [busybox](https://en.wikipedia.org/wiki/BusyBox#Commands) or [toybox](https://landley.net/toybox/help.html), see [Developer Notes](doc/7_develop.md#common-commands)
17
+
More concrete on the common commands provided by recent versions of [coreutils](https://en.wikipedia.org/wiki/List_of_GNU_Core_Utilities_commands), [busybox](https://en.wikipedia.org/wiki/BusyBox#Commands) or [toybox](https://landley.net/toybox/help.html), see [Developer Notes](doc/7_develop.md#common-commands)
18
18
19
-
*Note for MacOS and BSD Users:* As bashbot heavily uses modern bash and (gnu) grep/sed features, bashbot will not run without installing additional software, see [Install Bashbot](doc/0_install.md)
19
+
**Note for MacOS and BSD Users:** As bashbot heavily uses modern bash and (gnu) grep/sed features, bashbot will not run without installing additional software, see [Install Bashbot](doc/0_install.md)
20
20
21
+
**Note for embedded systems:** busybox or toybox ONLY is not sufficient, you need a to install a "real" bash, see also [Install Bashbot](doc/0_install.md)
21
22
22
23
Bashbot [Documentation](https://github.com/topkecleon/telegram-bot-bash) and [Downloads](https://github.com/topkecleon/telegram-bot-bash/releases) are available on www.github.com
23
24
24
25
## Documentation
25
-
*[Introdution to Telegram Bots](https://core.telegram.org/bots)
26
+
*[Introduction to Telegram Bots](https://core.telegram.org/bots)
26
27
*[Install Bashbot](doc/0_install.md)
27
28
* Install release
28
-
* Install from githup
29
+
* Install from github
29
30
* Update Bashbot
30
31
* Notes on Updates
31
32
*[Get Bottoken from Botfather](doc/1_firstbot.md)
@@ -74,8 +75,11 @@ If you don't want to register for Telegram you should stop reading here ;-)
74
75
After you're registered to Telegram send a message to [@botfather](https://telegram.me/botfather),
75
76
[create a new Telegram Bot token](doc/1_firstbot.md) and write it down. You need the token to install the bot.
76
77
77
-
Now open a terminal and check if bash is installed: ```which bash && echo "bash installed!"```.
78
-
If you get an error message bash is not installed.
78
+
Now open a terminal and check if bash is installed:
79
+
```
80
+
which bash && echo "bash seems available..."
81
+
```
82
+
79
83
80
84
Create a new directory, change to it: ```mkdir tbb; cd tbb``` and download the latest '*.tar.gz' file from
81
85
[https://github.com/topkecleon/telegram-bot-bash/releases](https://github.com/topkecleon/telegram-bot-bash/releases). This can be done with the commands:
@@ -99,7 +103,7 @@ You are Botadmin
99
103
100
104
/info
101
105
102
-
his is bashbot, the Telegram bot written entirely in bash.
106
+
This is bashbot, the Telegram bot written entirely in bash.
103
107
It features background tasks and interactive chats, and can serve as an interface for CLI programs.
104
108
```
105
109
For more Information on how to install, customize and use your new bot, read the [Documentation](#Documentation)
@@ -136,7 +140,7 @@ One of the most powerful features of unix shells is variable and command substit
136
140
but as they are expanded in double quotes, this can lead to RCE and information disclosing bugs in complex scripts like bashbot.
137
141
So it's more secure to escape or remove '$' in input from user, files or network.
138
142
139
-
A powerful tool to improve your scripts is ```shellcheck```. You can [use it online](https://www.shellcheck.net/) or [install shellcheck locally](https://github.com/koalaman/shellcheck#installing). Shellcheck is used extensive in bashbot development to ensure a high code quality, e.g. it's not allowed to push changes without passing all shellcheck tests.
143
+
A powerful tool to improve your scripts is ```shellcheck```. You can [use it online](https://www.shellcheck.net/) or [install shellcheck locally](https://github.com/koalaman/shellcheck#installing). Shellcheck is used extensively in bashbot development to ensure a high code quality, e.g. it's not allowed to push changes without passing all shellcheck tests.
140
144
In addition bashbot has a [test suite](doc/7_develop.md) to check if important functionality is working as expected.
141
145
142
146
### Use printf whenever possible
@@ -261,4 +265,4 @@ bashbotBlockRecover() {
261
265
262
266
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
0 commit comments