🎨 gifs

This commit is contained in:
Flam3rboy
2021-10-11 16:34:18 +02:00
parent 833dcb7c3c
commit 7053d9a8b8
5 changed files with 66 additions and 83 deletions
+1
View File
@@ -25,6 +25,7 @@ import cheerio from "cheerio";
import { MessageCreateSchema } from "../routes/channels/#channel_id/messages";
// TODO: check webhook, application, system author
// TODO: embed gifs/videos/images
const LINK_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;