Update marsey_bot.py
parent
36ed396f78
commit
15993b1693
|
@ -38,7 +38,7 @@ def webm2gif(abs_media_path): #convert webp to gif
|
||||||
media.info.pop('background', None)
|
media.info.pop('background', None)
|
||||||
abs_media_path = abs_media_path[:-4]+'gif' #change the path from webp to gif
|
abs_media_path = abs_media_path[:-4]+'gif' #change the path from webp to gif
|
||||||
media.save(abs_media_path, 'gif', optimize=False, save_all=True, disposal=2) #temp save a gif file (there might be a better way but i lazy :marseyteehee:)
|
media.save(abs_media_path, 'gif', optimize=False, save_all=True, disposal=2) #temp save a gif file (there might be a better way but i lazy :marseyteehee:)
|
||||||
return(abs_media_path) #return gif path
|
return abs_media_path #return gif path
|
||||||
|
|
||||||
|
|
||||||
client = commands.Bot(command_prefix = '!')
|
client = commands.Bot(command_prefix = '!')
|
||||||
|
|
Loading…
Reference in New Issue