Giter VIP home page Giter VIP logo

Comments (7)

stdrc avatar stdrc commented on July 21, 2024

以后更新考虑一下

from nonebot.

miranquil avatar miranquil commented on July 21, 2024

啥时候做鸭!(振声

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

冷静,这个暂时优先级不是非常高(但有计划!),先等等,我在重构另一个部分

from nonebot.

miranquil avatar miranquil commented on July 21, 2024

from nonebot.

CourserLi avatar CourserLi commented on July 21, 2024

哈哈哈

from nonebot.

miranquil avatar miranquil commented on July 21, 2024

哈哈哈

蛤蛤蛤

from nonebot.

mnixry avatar mnixry commented on July 21, 2024

目前nonebot有了message_preprocessor,自己实现一个该功能是非常简单的

from nonebot.message import CanceledException, message_preprocessor

@message_preprocessor
async def _(bot: NoneBot, event: Event, _):
    if event.user_id in settings.SUPERUSERS:
        return
    blacklists = ... # 此处需要你自己的黑名单获取逻辑
    if event.user_id in blacklists:
        raise CanceledException(f"User {event.user_id} is in blacklist")

from nonebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.