Init commit

This commit is contained in:
House of vanity
2018-02-04 07:13:09 +03:00
committed by GitHub
parent 1444638e23
commit ea2be1f23f
9 changed files with 764 additions and 0 deletions

15
settings.py Normal file
View File

@ -0,0 +1,15 @@
from worker import MessageWorker
from database import DataBase
from configparser import ConfigParser
global parser
parser = ConfigParser()
parser.read('assets/settings.ini')
global db
db = DataBase(
basefile='main.db',
scheme='assets/main.db.sql')
global worker
worker = MessageWorker(db = db)