Adding a domain corrector for instagram videos
This commit is contained in:
parent
793f254477
commit
63f5bdf388
@ -1,4 +1,4 @@
|
||||
FROM python:3.10-rc as build
|
||||
FROM python:3.10-rc AS build
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
ADD https://astral.sh/uv/install.sh /install.sh
|
||||
RUN bash /install.sh && rm /install.sh
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM python:3.10-rc as build
|
||||
FROM python:3.10-rc AS build
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
||||
RUN /install.sh && rm /install.sh
|
||||
|
@ -96,9 +96,12 @@ async def fix_social_media_links(ctx):
|
||||
"https://www.tiktok.com": "vxtiktok",
|
||||
"https://www.reddit.com": "rxddit",
|
||||
"https://old.reddit.com": "rxddit",
|
||||
"https://www.instagram.com": "d.ddinstagram",
|
||||
}
|
||||
if ctx.author.id == bot.user.id:
|
||||
return
|
||||
if "instagram.com" in ctx.content and "reel" not in ctx.content:
|
||||
return
|
||||
for k in correct_domains.keys():
|
||||
if ctx.content.startswith(k) or ctx.content.startswith("www.{k}.com"):
|
||||
await ctx.channel.send(
|
||||
|
Loading…
x
Reference in New Issue
Block a user