Default DB and session name

This commit is contained in:
cupcakearmy 2019-02-16 16:25:26 +01:00
parent bb8a9bfcda
commit 3b2e8c8d95
3 changed files with 7 additions and 9 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
config.json
config.json
data.db

5
app.py
View File

@ -5,7 +5,8 @@ import json
from src import InstaBot
data = json.load(open('config.json'))
data['database_name'] = 'data.db'
data['session_file'] = 'data.session'
bot = InstaBot(**data)
while True:
bot.new_auto_mod()
bot.mainloop()

View File

@ -1,4 +1,4 @@
version: '3.6'
version: '3'
services:
instabot:
@ -6,9 +6,5 @@ services:
restart: always
container_name: instabot
volumes:
# To reset the DB delete and create the data.db file
# rm data.db; touch data.db;
# or
# cat /dev/null > data.db
- ./data.db:/app/follows_db.db
- ./data.db:/app/data.db
- ./config.json:/app/config.json:ro