Voegt gif support toe voor tijdplaatjes
This commit is contained in:
@@ -406,8 +406,11 @@ class Shitpost(commands.Cog):
|
|||||||
#filepng = './tijd/' + time + '.png'
|
#filepng = './tijd/' + time + '.png'
|
||||||
filejpg = os.path.join('tijd', time) + '.jpg'
|
filejpg = os.path.join('tijd', time) + '.jpg'
|
||||||
filepng = os.path.join('tijd', time) + '.png'
|
filepng = os.path.join('tijd', time) + '.png'
|
||||||
|
filegif = os.path.join('tijd', time) + '.gif'
|
||||||
if os.path.isfile(filejpg):
|
if os.path.isfile(filejpg):
|
||||||
filepath = filejpg
|
filepath = filejpg
|
||||||
|
elif os.path.isfile(filegif):
|
||||||
|
filepath = filegif
|
||||||
elif os.path.isfile(filepng):
|
elif os.path.isfile(filepng):
|
||||||
filepath = filepng
|
filepath = filepng
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user