social-dl/run
anonymousx97 7b4c8a2446 v2.3.0: Disable Auto DL, New IG API, Dump.
v2.3.0
What's New:

• Instagram:
Added Dump to Log Instagram posts and save duplicate API calls.
New Instagram API (Thanks to RoseloverX).

• Reddit:
Switch to regex for checking videos/gifs.

• YTDL:
Prevent Live streams from being downloaded.
Lower Video duration to 3 mins.

• Added .disable/.enable to allow Disabling Auto DL in chats and allow /dl /down /download command to users in those chats.
• Use Enums for media types and clean up Sending media type logic.
• New .update command to remotely update bot without re-deploying.
• New .repo cmd.
• Clean up Add/Del sudo/chat logic.
2023-09-09 14:35:58 +05:30

20 lines
384 B
Bash

#!/bin/sh
if [ "$API_PORT" ] ; then
py_code="
from aiohttp import web
app = web.Application()
app.router.add_get('/', lambda _: web.Response(text='Web Server Running...'))
web.run_app(app, host='0.0.0.0', port=$API_PORT, reuse_port=True, print=None)
"
python3 -q -c "$py_code" & echo "Dummy Web Server Started..."
fi
if ! [ -d ".git" ] ; then
git init
fi
python3 -m app