Added categories lookup file

This commit is contained in:
Vivek Santayana 2021-07-20 17:28:38 +01:00
parent 45f7edb75d
commit c6113e31eb
2 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,12 @@ gmFile = os.getenv('GM') if os.getenv('GM').endswith('.yml') or os.getenv('GM').
if not os.path.exists(gmFile):
yaml_dump({},gmFile)
# Locate or create Categories lookup file. Same as above.
categoriesFile = os.getenv('CATEGORIES') if os.getenv('CATEGORIES').endswith('.yml') or os.getenv('CATEGORIES').endswith('.yaml') else './data/categories.yml'
if not os.path.exists(categoriesFile):
yaml_dump({},categoriesFile)
# Locate Cogs Directory
cogsDir = 'cogs'

1
app/data/categories.yml Normal file
View File

@ -0,0 +1 @@
{}