Skip to content

Commit

Permalink
Add check to create 'temp' folder if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Sep 11, 2023
1 parent 0fd3efe commit aafc4d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import asyncio
from datetime import datetime
import pytz
import os

mtl_tz = pytz.timezone('America/Toronto')

Expand Down Expand Up @@ -66,6 +67,10 @@ def check(interaction: Interaction):
return None

async def prompt_for_image(ctx):

if not os.path.exists("./temp"):
os.makedirs("./temp")

embed = Embed(
title="Image",
description="Veuillez envoyer l'image que vous voulez ajouter au message.",
Expand Down

0 comments on commit aafc4d1

Please sign in to comment.