diff --git a/README.html b/README.html index cf3d7a2..9d2140a 100644 --- a/README.html +++ b/README.html @@ -169,6 +169,19 @@ It features background tasks and interactive chats, and can serve as an interfac
At the beginning bashbot was simply the file bashbot.sh
you can copy everywhere and run the bot. Now we have ‘commands.sh’, ‘mycommands.sh’, ’modules/*.sh’ and much more.
Hey no Problem, if you are finished with your cool bot run dev/make-standalone.sh
to create a stripped down Version of your bot containing only ‘bashbot.sh’ and ‘commands.sh’! For more information see Create a stripped down Version of your Bot
Of course, you can send messages from CLI and scripts, simply install bashbot as described here, send the messsage ‘/start’ to set yourself as botadmin and stop the bot with ./bashbot.sh kill
.
Run the following commands in your bash shell or script while you are in the installation directory:
+# prepare bash / script to send commands
+export BASHBOT_HOME="$(pwd)"
+source ./bashbot.sh source
+
+# send me a test message
+send_message "$(cat "$BOTADMIN")" "test"
+
+# send me output of a system command
+send_message "$(<"$BOTADMIN")" "$(df -h)"
For more information see Expert Use
May be your IP is blocked by telegram. You can test this by running curl or wget manually:
curl -m 10 https://api.telegram.org/bot
@@ -180,6 +193,6 @@ It features background tasks and interactive chats, and can serve as an interfac
@Gnadelwartz
That’s it!
If you feel that there’s something missing or if you found a bug, feel free to submit a pull request!
-
VERSION
v0.80-18-g6b88656
+
VERSION
v0.80-22-g15e7f01