v0.0.9 18/07/2021
Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: sppidy <sppidy@users.noreply.github.com> Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com> Co-authored-by: divkix <divkix@users.noreply.github.com> Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com> Co-authored-by: Programming Error <error@notavailable.live>
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
|
||||
# PLease read the GNU Affero General Public License in
|
||||
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
|
||||
|
||||
"""
|
||||
|
||||
✘ Commands Available -
|
||||
@@ -13,7 +12,6 @@
|
||||
gives a glitchy gif.
|
||||
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from . import *
|
||||
@@ -28,12 +26,10 @@ async def _(e):
|
||||
if not wut.startswith(("pic", "sticker")):
|
||||
return await eor(e, "`Unsupported Media`")
|
||||
xx = await eor(e, "`Gliching...`")
|
||||
ok = await bot.download_media(reply.media)
|
||||
ok = await e.client.download_media(reply.media)
|
||||
cmd = f"glitch_me gif --line_count 200 -f 10 -d 50 '{ok}' ult.gif"
|
||||
stdout, stderr = await bash(cmd)
|
||||
await ultroid_bot.send_file(
|
||||
e.chat_id, "ult.gif", force_document=False, reply_to=reply
|
||||
)
|
||||
await e.reply(file="ult.gif", force_document=False)
|
||||
await xx.delete()
|
||||
os.remove(ok)
|
||||
os.remove("ult.gif")
|
||||
|
||||
Reference in New Issue
Block a user