当前位置:网站首页>QQ机器人:群成员自我禁言管理【最新beta2版本】
QQ机器人:群成员自我禁言管理【最新beta2版本】
2022-06-25 18:35:00 【川川菜鸟】
声明:之前写的老版本已经不能用了,请把所有插件更新为最新版本。代码也需要重新迭代更新。也就是要重新写。
群:970353786
演示:
完整源码如下:
""" 自主禁言
""" from enum import Enum from typing import Optional from nonebot import on_command, on_notice from nonebot.adapters.onebot.v11 import Bot, Message, MessageSegment from nonebot.adapters.onebot.v11.event import ( GroupAdminNoticeEvent, GroupMessageEvent, PrivateMessageEvent, ) from nonebot.params import Arg, CommandArg, Depends from nonebot.typing import T_State from src.utils.helpers import parse_int, render_expression # region 禁言 EXPR_OK = ( "好的,满足你!", "已禁言。", "{duration} 分钟后见~", ) EXPR_NEED_HELP = ( "{at
边栏推荐
- 正则表达式总结
- JVM understanding
- Current situation and trend analysis of China's glass packaging containers in 2021: the revenue of glass packaging containers increases year by year [figure]
- [deeply understand tcapulusdb technology] tcapulusdb import data
- Basic operation details of binary search tree (BST) (complete code, including test cases)
- Detailed explanation of oauth2 - Introduction (I)
- [deeply understand tcapulusdb technology] tmonitor system upgrade
- 【深入理解TcaplusDB技术】TcaplusDB新增机型
- 【深入理解TcaplusDB技术】如何实现Tmonitor单机安装
- 中金财富安全吗? 开户需要多久
猜你喜欢
[in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
初探Oracle全栈虚拟机---GraalVM
【深入理解TcaplusDB技术】单据受理之事务执行
[deeply understand tcapulusdb technology] tcapulusdb import data
In 2021, China's private equity market is growing, and the scale of private equity fund management reaches 19.78 trillion yuan [figure]
【深入理解TcaplusDB技术】创建游戏区
Basic operations and basic data types of MySQL database
Basic operation details of binary search tree (BST) (complete code, including test cases)
Analysis on planting area, output and import of sugarcane in Guangxi in 2021: the output of sugarcane in Guangxi accounts for 68.56% of the total output of sugarcane in China [figure]
使用宝塔来进行MQTT服务器搭建
随机推荐
Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]
将Graph Explorer搬上JupyterLab:使用GES4Jupyter连接GES并进行图探索
How to sort massive data? How to process data between memory and hard disk?
两轮市场红海,利尔达芯智行如何乘风破浪?
Training of long and difficult sentences in postgraduate entrance examination day85
【深入理解TcaplusDB技术】TcaplusDB机型
Idea annotation color modification method (clear)
158 Bar _ Modèle Power bi utilise Dax + SVG pour créer des diagrammes d'affaires presque toutes les possibilités
一晚上做了一个xpath终结者:xpath-helper-plus
solidity 合约地址转钱包、钱包地址转合约
[deeply understand tcapulusdb technology] create a game area for document acceptance
RMAN backup database_ Manage backup window
PHP数据库连接version1.1
Basic operation details of binary search tree (BST) (complete code, including test cases)
Regular expression summary
electron 基础项目搭建 &&主线程和渲染线程的通信
[elt.zip] openharmony paper Club - memory compression for data intensive applications
【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩
Comparison rules of strings in JS
Training of long and difficult sentences in postgraduate entrance examination day89