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 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()

View File

@ -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