forked from Raiza.dev/EliteBot
Move creating 'data' directory to elitebot.py
This commit is contained in:
parent
4b6c768126
commit
48d0a7a7b0
1 changed files with 3 additions and 0 deletions
|
@ -1,12 +1,15 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from src.bot import Bot
|
from src.bot import Bot
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
os.makedirs('data', exist_ok=True)
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print('Usage: python elitebot.py <config_file>')
|
print('Usage: python elitebot.py <config_file>')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue