From 9ef99ee1b8f727124943f72b1474843be84bdec9 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Tue, 21 May 2019 23:35:56 +0200 Subject: [PATCH] remove unsed variable --- commands.sh | 3 --- doc/0_install.md | 12 +++++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/commands.sh b/commands.sh index 0347758..5d1b592 100644 --- a/commands.sh +++ b/commands.sh @@ -35,9 +35,6 @@ bashbot_help='*Available commands*: Written by Drew (@topkecleon), Daniil Gentili (@danogentili) and KayM(@gnadelwartz). Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash) ' -# we don't know whom we are ... -copname="" - # load modues on startup and always on on debug if [ "${1}" = "source" ] || [[ "${1}" = *"debug"* ]] ; then diff --git a/doc/0_install.md b/doc/0_install.md index 807bff1..51468f8 100644 --- a/doc/0_install.md +++ b/doc/0_install.md @@ -28,15 +28,15 @@ As an alternative to download the zip files, you can clone the github repository ### Update bashbot +**Note: all files including 'mycommands.sh' may overwritten, make a backup!** + 1. Go to the directory where you had installed bashbot, e.g. * your $HOME directory * /usr/local 2. [Download latest release zip from github](https://github.com/topkecleon/telegram-bot-bash/releases) -3. Extract all files to your existing bashbot dir - **Note: all files execpt 'mycommands.sh' and 'commands.sh' may overwritten!** -4. Save your your current 'commands.sh' and run ```cp commands.sh.dist commands.sh``` -5. Stop all running instances of bashbot at this point latest -6. Run ```sudo ./bashbot.sh init``` to setup your environment after the update +3. Stop all running instances of bashbot +4. Extract all files to your existing bashbot dir +5. Run ```sudo ./bashbot.sh init``` to setup your environment after the update If you modified 'commands.sh' re apply all changes to the new 'commands.sh'. To avoid this all your modifications must be done in 'mycommands.sh' only. @@ -60,6 +60,8 @@ must be replaced by ```send_interactive "${CHATD[ID]}" "${MESSAGE}"``` From version 0.60 on your commands must be placed in 'mycommands.sh'. If you update from a version with your commands in 'commands.sh' move all your commands and functions to 'mycommands.sh'. +From version 0.80 on 'commands.sh' will be overwritten on update! + #### Location of var / tmp / data dirs From version 0.70 on the tmp dir is renamed to 'data-bot-bash' to reflect the fact that not only temporary files are stored. an existing 'tmp-bot-bash' will be automatically renamed after update.