2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +00:00

Whitelist setlanguage links

This commit is contained in:
Martin Rys
2021-03-12 09:45:21 +01:00
parent 5bd57355b3
commit 92828f4324

View File

@@ -122,6 +122,9 @@ const dh = {
if (url.pathname.toLowerCase().startsWith("/addstickers/")) {
return Action.Nothing;
}
if (url.pathname.toLowerCase().startsWith("/setlanguage/")) {
return Action.Nothing;
}
if (url.searchParams.has("start")) return Action.Warn("Bot reflink");
if (await managesLinkedGroup(url)) return Action.Nothing;
const [, username] = R.match(/^\/(\w+)(?:\/\d*)?$/, url.pathname);