mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-06-10 22:22:26 +00:00
use zip and or tar files
This commit is contained in:
parent
c292292709
commit
6718d24133
|
@ -5,25 +5,25 @@
|
||||||
1. Go to the directory you want to install bashbot, e.g.
|
1. Go to the directory you want to install bashbot, e.g.
|
||||||
* your $HOME directory (install and run with your user-ID)
|
* your $HOME directory (install and run with your user-ID)
|
||||||
* /usr/local if you want to run as service
|
* /usr/local if you want to run as service
|
||||||
2. [Download latest release zip from github](https://github.com/topkecleon/telegram-bot-bash/releases) and extract all files.
|
2. [Download latest release zip / tar archive from github](https://github.com/topkecleon/telegram-bot-bash/releases) and extract all files.
|
||||||
3. Change into the directory ```telegram-bot-bash```
|
3. Change into the directory ```telegram-bot-bash```
|
||||||
4. Activate the bot example commands ``cp mycommands.sh.dist mycommands.sh```
|
4. Activate the bot example commands ```cp mycommands.sh.dist mycommands.sh```
|
||||||
5. Run ```./bashbot.sh init``` to setup the environment and enter your Bots token given by botfather.
|
5. Run ```./bashbot.sh init``` to setup the environment and enter your Bots token given by botfather.
|
||||||
|
|
||||||
Edit 'mycommands.sh to your needs.
|
Edit ```mycommands.sh``` to your needs.
|
||||||
Now your Bot is ready to start ...
|
Now your Bot is ready to start ...
|
||||||
|
|
||||||
**If you are new to Bot development read [Bots: An introduction for developers](https://core.telegram.org/bots)**
|
**If you are new to Bot development read [Bots: An introduction for developers](https://core.telegram.org/bots)**
|
||||||
|
|
||||||
|
|
||||||
### Update bashbot
|
### Update bashbot
|
||||||
|
|
||||||
**Note: all files including 'mycommands.sh' may overwritten, make a backup!**
|
**Note: all files including ```mycommands.sh``` may overwritten, make a backup!**
|
||||||
|
|
||||||
1. Go to the directory where you had installed bashbot, e.g.
|
1. Go to the directory where you had installed bashbot, e.g.
|
||||||
* your $HOME directory
|
* your $HOME directory
|
||||||
* /usr/local
|
* /usr/local
|
||||||
2. [Download latest release zip from github](https://github.com/topkecleon/telegram-bot-bash/releases)
|
2. [Download latest release zip / tar archive from github](https://github.com/topkecleon/telegram-bot-bash/releases)
|
||||||
3. Stop all running instances of bashbot
|
3. Stop all running instances of bashbot
|
||||||
4. Extract all files to your existing bashbot dir
|
4. Extract all files to your existing bashbot dir
|
||||||
5. Run ```sudo ./bashbot.sh init``` to setup your environment after the update
|
5. Run ```sudo ./bashbot.sh init``` to setup your environment after the update
|
||||||
|
@ -32,11 +32,17 @@ If you modified ```commands.sh``` move your changes to ```mycommands.sh```, this
|
||||||
|
|
||||||
Now you can restart your bashbot instances.
|
Now you can restart your bashbot instances.
|
||||||
|
|
||||||
|
### Get zip / tar archive on command line
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget -q https://github.com/$(wget -q https://github.com/topkecleon/telegram-bot-bash/releases/latest -O - | egrep '/.*/.*/.*tar.gz' -o)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Install from github
|
### Install from github
|
||||||
|
|
||||||
The first install can also be done from github, updates should always done from the zip or tar archive to avoid
|
The first install can also be done from github, updates should always done from the zip or tar archive to avoid
|
||||||
overwriting your config and mycommands.sh files.
|
overwriting your config and ```mycommands.sh``` files.
|
||||||
|
|
||||||
1. Go to the directory you want to install bashbot, e.g.
|
1. Go to the directory you want to install bashbot, e.g.
|
||||||
* your $HOME directory (install and run with your user-ID)
|
* your $HOME directory (install and run with your user-ID)
|
||||||
|
@ -117,8 +123,8 @@ if tmux ls | grep -v send | grep -q "$copname"; then inproc; fi
|
||||||
must be replaced by ```send_interactive "${CHATD[ID]}" "${MESSAGE}"```
|
must be replaced by ```send_interactive "${CHATD[ID]}" "${MESSAGE}"```
|
||||||
|
|
||||||
### Do not edit commands.sh
|
### Do not edit commands.sh
|
||||||
From version 0.60 on your commands must be placed in 'mycommands.sh'. If you update from a version with your commands
|
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'.
|
in 'commands.sh' move all your commands and functions to ```mycommands.sh```.
|
||||||
|
|
||||||
From version 0.80 on 'commands.sh' will be overwritten on update!
|
From version 0.80 on 'commands.sh' will be overwritten on update!
|
||||||
|
|
||||||
|
@ -147,5 +153,5 @@ The old format is supported for backward compatibility, but may fail for corner
|
||||||
|
|
||||||
#### [Next Create Bot](1_firstbot.md)
|
#### [Next Create Bot](1_firstbot.md)
|
||||||
|
|
||||||
#### $$VERSION$$ v1.0-19-gc2a110a
|
#### $$VERSION$$ v1.0-20-gc292292
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user