13 lines
260 B
Python
13 lines
260 B
Python
import os.path
|
|
from bot.config import DB
|
|
from .db_model import DBDict
|
|
|
|
if not os.path.isfile(DB):
|
|
open('sync', 'w')
|
|
|
|
|
|
db = {
|
|
'config': DBDict(DB, autocommit=True, tablename='config'),
|
|
'cooldown': DBDict(DB, autocommit=True, tablename='cooldown')
|
|
}
|