removed comment in pokemon

temporarily removed deleting temp files
This commit is contained in:
phixxy 2024-01-28 00:42:16 -08:00
parent 61c1db1faa
commit 1f982b908e
2 changed files with 3 additions and 3 deletions

View file

@ -248,7 +248,6 @@ class PokemonGame(commands.Cog):
pokemon = pokemon.replace('shiny ', '') pokemon = pokemon.replace('shiny ', '')
url = "https://pokeapi.co/api/v2/pokemon/" + pokemon url = "https://pokeapi.co/api/v2/pokemon/" + pokemon
dex_url = "https://pokeapi.co/api/v2/pokemon-species/" + pokemon dex_url = "https://pokeapi.co/api/v2/pokemon-species/" + pokemon
#try:
data = await self.get_json(url) data = await self.get_json(url)
name = data['name'] name = data['name']
height_str = str(int(data['height'])/10) + 'm' height_str = str(int(data['height'])/10) + 'm'

View file

@ -36,8 +36,9 @@ async def task_loop():
#Run daily tasks #Run daily tasks
if current_time.tm_hour == 0 and current_time.tm_min == 0 and current_time.tm_sec == 0: if current_time.tm_hour == 0 and current_time.tm_min == 0 and current_time.tm_sec == 0:
try: try:
await delete_all_files("tmp/") pass
logger.info("Deleted tmp/ files.") #await delete_all_files("tmp/")
#logger.info("Deleted tmp/ files.")
except Exception as error: except Exception as error:
logger.exception("Failed to delete files!") logger.exception("Failed to delete files!")