vk_chat_bot/config.py
Kirill Kirilenko eaf316ac84 Переход на SQLite.
Добавлены команды для учета предупреждений.
2025-08-22 02:04:04 +03:00

23 lines
390 B
Python

import json
# Config = {
# api_token: "xxxxxxxx"
# }
Config = {}
def config_load():
global Config
try:
file = open('config.json', 'r')
Config = json.load(file)
file.close()
except IOError:
Config = {'api_token': ''}
def config_save():
global Config
with open('config.json', 'w') as file:
json.dump(Config, file, indent=4)