removed comment in pokemon
temporarily removed deleting temp files
This commit is contained in:
parent
61c1db1faa
commit
1f982b908e
2 changed files with 3 additions and 3 deletions
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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!")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue