mirror of
https://github.com/cupcakearmy/docker-instabot.git
synced 2024-12-21 23:16:23 +00:00
Default DB and session name
This commit is contained in:
parent
bb8a9bfcda
commit
3b2e8c8d95
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
config.json
|
config.json
|
||||||
|
data.db
|
5
app.py
5
app.py
@ -5,7 +5,8 @@ import json
|
|||||||
from src import InstaBot
|
from src import InstaBot
|
||||||
|
|
||||||
data = json.load(open('config.json'))
|
data = json.load(open('config.json'))
|
||||||
|
data['database_name'] = 'data.db'
|
||||||
|
data['session_file'] = 'data.session'
|
||||||
bot = InstaBot(**data)
|
bot = InstaBot(**data)
|
||||||
|
|
||||||
while True:
|
bot.mainloop()
|
||||||
bot.new_auto_mod()
|
|
@ -1,4 +1,4 @@
|
|||||||
version: '3.6'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
instabot:
|
instabot:
|
||||||
@ -6,9 +6,5 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
container_name: instabot
|
container_name: instabot
|
||||||
volumes:
|
volumes:
|
||||||
# To reset the DB delete and create the data.db file
|
- ./data.db:/app/data.db
|
||||||
# rm data.db; touch data.db;
|
|
||||||
# or
|
|
||||||
# cat /dev/null > data.db
|
|
||||||
- ./data.db:/app/follows_db.db
|
|
||||||
- ./config.json:/app/config.json:ro
|
- ./config.json:/app/config.json:ro
|
Loading…
Reference in New Issue
Block a user