# Custom plugin usage text __plugin_name__ = '求签' __plugin_usage__ = r'''【求签】 求签, 求运势, 包括且不限于抽卡、吃饭、睡懒觉、DD 每个人每天求同一个东西的结果是一样的啦! 不要不信邪重新抽啦! **Permission** Command & Lv.10 **Usage** /求签 [所求之事] /DD老黄历''' # Init plugin export init_export(export(), __plugin_name__, __plugin_usage__) # 注册事件响应器 Maybe = CommandGroup('maybe', rule=has_command_permission() & permission_level(level=10), permission=GROUP, priority=10, block=True) luck = Maybe.command('luck', aliases={'求签'}) # 修改默认参数处理 @luck.args_parser async def parse(bot: Bot, event: GroupMessageEvent, state: T_State): args = str(event.get_plaintext()).strip().lower().split() if not args: await luck.reject('你似乎没有发送有效的参数呢QAQ, 请重新发送:') state[state["_current_key"]] = args[0]
**SuperUser Only** /图库统计 /导入图库''' # 声明本插件可配置的权限节点 __plugin_auth_node__ = [PluginCoolDown.skip_auth_node, 'setu', 'moepic'] # 声明本插件的冷却时间配置 __plugin_cool_down__ = [ PluginCoolDown(__plugin_raw_name__, 'user', 10), PluginCoolDown(__plugin_raw_name__, 'group', 2) ] # Init plugin export init_export(export(), __plugin_name__, __plugin_usage__, __plugin_auth_node__, __plugin_cool_down__) # 注册事件响应器 setu = on_command('来点涩图', rule=has_command_permission() & has_level_or_node(50, __plugin_raw_name__, 'setu'), permission=GROUP, priority=20, block=True) @setu.handle() async def handle_first_receive(bot: Bot, event: GroupMessageEvent, state: T_State): args = set(str(event.get_plaintext()).strip().split()) # 处理r18