Giter VIP home page Giter VIP logo

nonebot_plugin_monitor's Introduction

nonebot

Monitor_Groups

✨ 基于NoneBot2实现的 监测QQ群事件 插件 ✨

具体功能:

  • 监测群组的以下变动事件:
    • 群成员增加、减少时,自动发送通知
    • 群管理变更时,自动发送通知
    • 被其他成员戳一戳时,自动回复
    • 群成员上传文件时,自动发送通知
    • 群红包被抢完时,自动发送红包运气王
    • 群成员荣誉变更时,发送变更通知(测试时没反应QwQ)

配置说明:

1.把下载后的文件夹nonebot_plugin_monitoring放在src/plugins/目录下

2.修改admin.py

bot_qq:改为机器人的QQ号 super_qq:添加或新增管理员的QQ号

3.修改chuoyichuo.py

bot_name:设置机器人的昵称

4.修改rongyu.py

bot_qq:改为机器人的QQ号 super_qq:添加或新增管理员的QQ号

nonebot_plugin_monitor's People

Contributors

cjladmin avatar

Stargazers

 avatar dakaiye avatar

nonebot_plugin_monitor's Issues

错误

init.py是我包的原因吗?
from monitor_groups.nonebot_plugin_monitor.chuoyichuo import chuo_send_msg
from monitor_groups.nonebot_plugin_monitor.rongyu import monitor_rongyu
from monitor_groups.nonebot_plugin_monitor.admin import *

@del_user.handle()
async def send_rongyu(bot: Bot, event: GroupDecreaseNoticeEvent, state: T_State):
rely_msg = del_user_bey(event.time, event.group_id, event.user_id)
await del_user.finish(message=Message(rely_msg))

@add_user.handle()
async def send_rongyu(bot: Bot, event: GroupIncreaseNoticeEvent, state: T_State):
rely_msg = add_user_wecome(event.time, event.group_id, event.user_id)
await add_user.finish(message=Message(rely_msg))

@admin.handle()
async def send_rongyu(bot: Bot, event: GroupAdminNoticeEvent, state: T_State):
rely_msg = admin_change(event.sub_type, event.user_id)
await admin.finish(message=Message(rely_msg))

六个错误
QQ截图20220528211845
QQ截图20220528211854

建议

可以不可以为戳一戳功能加一个cd或者惩罚什么的,防止刷屏

插件无法使用

作者能不能试试你的插件,pypi上的传的包有问题,pip install下载后无法使用,git clone也不行的

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.