Create data folder on start

This commit is contained in:
Dawid Rejowski 2022-09-11 18:47:46 +02:00
parent e554fc5937
commit 0f41c6f0b7

View file

@ -14,6 +14,7 @@ from telegram_exporter import TelegramExporter
async def main():
os.makedirs('data', exist_ok=True)
if not os.path.exists('config.yaml'):
shutil.copy('config.yaml.example', 'config.yaml')
logging.warning('Please fill in config.yaml file, then restart the bot')