You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fox-V3/fight/__init__.py

23 lines
625 B

from .fight import Fight
def check_folders():
if not os.path.exists("data/Fox-Cogs"):
print("Creating data/Fox-Cogs folder...")
os.makedirs("data/Fox-Cogs")
if not os.path.exists("data/Fox-Cogs/fight"):
print("Creating data/Fox-Cogs/fight folder...")
os.makedirs("data/Fox-Cogs/fight")
def check_files():
if not dataIO.is_valid_json("data/Fox-Cogs/fight/fight.json"):
dataIO.save_json("data/Fox-Cogs/fight/fight.json", {})
def setup(bot):
check_folders()
check_files()
n = Fight(bot)
bot.add_cog(n)
bot.add_listener(n._on_react, "on_reaction_add")