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: