mirror of
https://github.com/wah-su/stickerbridge.git
synced 2025-04-17 14:54:40 +00:00
Create data folder on start
This commit is contained in:
parent
e554fc5937
commit
0f41c6f0b7
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -14,6 +14,7 @@ from telegram_exporter import TelegramExporter
|
||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
os.makedirs('data', exist_ok=True)
|
||||||
if not os.path.exists('config.yaml'):
|
if not os.path.exists('config.yaml'):
|
||||||
shutil.copy('config.yaml.example', 'config.yaml')
|
shutil.copy('config.yaml.example', 'config.yaml')
|
||||||
logging.warning('Please fill in config.yaml file, then restart the bot')
|
logging.warning('Please fill in config.yaml file, then restart the bot')
|
||||||
|
|
Loading…
Add table
Reference in a new issue