Team Ai
Apppublic

azils3/bash

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
profanityfilter.py33 linesDownload Raw Back to plugins
1# Ultroid - UserBot2# Copyright (C) 2021-2025 TeamUltroid3#4# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >5# PLease read the GNU Affero General Public License in6# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.7"""8✘ Commands Available -9 10•`{i}addprofanity`11   If someone sends bad word in a chat, Then bot will delete that message.12 13•`{i}remprofanity`14   From chat from Profanity list.15 16"""17 18from pyUltroid.dB.nsfw_db import profan_chat, rem_profan19 20from . import get_string, ultroid_cmd21 22 23@ultroid_cmd(pattern="(add|rem)profanity$", admins_only=True)24async def addp(e):25    cas = e.pattern_match.group(1)26    add = cas == "add"27    if add:28        profan_chat(e.chat_id, "mute")29        await e.eor(get_string("prof_1"), time=10)30        return31    rem_profan(e.chat_id)32    await e.eor(get_string("prof_2"), time=10)33