installing on termux instruction
This commit is contained in:
parent
d89340fbbc
commit
3ac189ae1f
2 changed files with 26 additions and 4 deletions
|
@ -11,7 +11,6 @@ ___
|
|||
<br/>
|
||||
|
||||
БД може бути sqlite і/або MySQL (та хоч дві зразу) <br/>
|
||||
переключається прямо в файлах ботів: <br/>
|
||||
|
||||
db_pymysql = True#set True or False <br/>
|
||||
db_sqlite3 = True#set True or False <br/>
|
||||
[Installing on Termux \[EN\]](installing-on-termux.md)
|
||||
[Installing on Termux \[UA\] by S1S13AF7](https://github.com/S1S13AF7/ub4tg/blob/main/Termux.md) maybe different...
|
||||
|
|
23
installing-on-termux.md
Normal file
23
installing-on-termux.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
Termux apk here: https://f-droid.org/repo/com.termux_1020.apk
|
||||
Termux:API apk if you want get notifications about updates of this code: https://f-droid.org/repo/com.termux.api_51.apk
|
||||
|
||||
0. Optional step: allow permission on storage in Termux before start, after this, step 3-4 can be skipped
|
||||
1. Run termux and enter this oneliner:
|
||||
`pkg update && pkg upgrade && pkg install openssl python3 git termux-api && git clone https://code.criminallycute.fi/bioeb_org/ub4tg/ && cd ub4tg && pip3 install -r requirements.txt`
|
||||
If pkg upgrade ask overwrite some files - press Y
|
||||
2. Now after this you can run bot:
|
||||
`./run` or `python3 ubot.py`
|
||||
3. Termux will ask permission on storage, allow it. Restart Termux (enter `quit` or press CTRL+d)
|
||||
4. Run bot again:
|
||||
`cd ub4tg; ./run`
|
||||
5. Follow first time setup, it creates config for you and asks some questions
|
||||
6. Enjoy
|
||||
|
||||
For start bot again (if Termux restarted) just enter:
|
||||
`cd ub4tg; ./run`
|
||||
For fast access to bot, make alias:
|
||||
`echo "alias ub4tg='cd ~/ub4tg; ./run'" >> .bashrc`
|
||||
then
|
||||
`source ~/.bashrc`
|
||||
Now you can run bot in everywhere directory, just enter: `ub4tg`
|
||||
|
Loading…
Reference in a new issue