mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 14:15:25 +00:00
generated group links excluded from warns
This commit is contained in:
@@ -28,7 +28,10 @@ const removeLinks = async ({ message, chat, reply }, next) => {
|
||||
...groups.map(group => group.link
|
||||
? group.link.split('/joinchat/')[1]
|
||||
: ''),
|
||||
...excludedGroups
|
||||
...excludedGroups.map(group =>
|
||||
group.includes('/joinchat/')
|
||||
? group.split('/joinchat/')[1]
|
||||
: group)
|
||||
];
|
||||
if (
|
||||
message.forward_from_chat &&
|
||||
|
Reference in New Issue
Block a user