mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 23:05:27 +00:00
Get rid of data folder on git, add it to gitignore, gen files needed at
boot
This commit is contained in:
parent
b04fdc65ee
commit
03cdf7cf3b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -100,5 +100,5 @@ files/*
|
|||
priv-*
|
||||
config.py
|
||||
|
||||
# Prevent new versions of this from being committed
|
||||
data/warnsv2.json
|
||||
# Prevent data files from being committed
|
||||
data/
|
||||
|
|
11
Robocop.py
11
Robocop.py
|
@ -167,4 +167,15 @@ async def on_message(message):
|
|||
ctx = await bot.get_context(message)
|
||||
await bot.invoke(ctx)
|
||||
|
||||
if not os.path.exists("data"):
|
||||
os.makedirs("data")
|
||||
|
||||
wanted_jsons = ["data/restrictions.json",
|
||||
"data/warnsv2.json"]
|
||||
|
||||
for wanted_json in wanted_jsons:
|
||||
if not os.path.exists(wanted_json):
|
||||
with open(wanted_json, "w") as f:
|
||||
f.write("{}")
|
||||
|
||||
bot.run(config.token, bot=True, reconnect=True)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{}
|
|
@ -1 +0,0 @@
|
|||
{}
|
Loading…
Reference in a new issue