Adding a domain corrector for instagram videos
This commit is contained in:
parent
62d54950b4
commit
a94546308b
@ -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 app/requirements.txt /requirements.txt
|
||||||
ADD https://astral.sh/uv/install.sh /install.sh
|
ADD https://astral.sh/uv/install.sh /install.sh
|
||||||
RUN bash /install.sh && rm /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 app/requirements.txt /requirements.txt
|
||||||
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
||||||
RUN /install.sh && rm /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.tiktok.com": "vxtiktok",
|
||||||
"https://www.reddit.com": "rxddit",
|
"https://www.reddit.com": "rxddit",
|
||||||
"https://old.reddit.com": "rxddit",
|
"https://old.reddit.com": "rxddit",
|
||||||
|
"https://www.instagram.com": "d.ddinstagram",
|
||||||
}
|
}
|
||||||
if ctx.author.id == bot.user.id:
|
if ctx.author.id == bot.user.id:
|
||||||
return
|
return
|
||||||
|
if "instagram.com" in ctx.content and "reel" not in ctx.content:
|
||||||
|
return
|
||||||
for k in correct_domains.keys():
|
for k in correct_domains.keys():
|
||||||
if ctx.content.startswith(k) or ctx.content.startswith("www.{k}.com"):
|
if ctx.content.startswith(k) or ctx.content.startswith("www.{k}.com"):
|
||||||
await ctx.channel.send(
|
await ctx.channel.send(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user