Voegt gif support toe voor tijdplaatjes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user