From ef76d1ce1f22ee6a73e31ad5e192e2032c984ffb Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Fri, 4 Sep 2020 22:38:30 +0200 Subject: [PATCH] Voegt gif support toe voor tijdplaatjes --- Shitpost.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shitpost.py b/Shitpost.py index 05f2fbc..b095178 100644 --- a/Shitpost.py +++ b/Shitpost.py @@ -406,8 +406,11 @@ class Shitpost(commands.Cog): #filepng = './tijd/' + time + '.png' filejpg = os.path.join('tijd', time) + '.jpg' filepng = os.path.join('tijd', time) + '.png' + filegif = os.path.join('tijd', time) + '.gif' if os.path.isfile(filejpg): filepath = filejpg + elif os.path.isfile(filegif): + filepath = filegif elif os.path.isfile(filepng): filepath = filepng try: