mirror of
https://github.com/cupcakearmy/docker-instabot.git
synced 2024-12-21 15:06:25 +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
|
||||
data.db
|
5
app.py
5
app.py
@ -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()
|
@ -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
|
Loading…
Reference in New Issue
Block a user