在以上两个文件加了日志打印,然后发现回复消息里的艾特会被去掉,导致在回复里艾特机器人就触发不了to_me了 复现步骤 1、自己发一条消息 2、回复自己的消息,并艾特某人 期望的结果 回复消息里的艾特不会被去掉,在回复里艾特能触发to_me 截图或日志
nonebot机器⼈插件-妹⼦ 1import time 2 3from nonebot import on_command 4from nonebot.rule import to_me 5from nonebot.typing import T_State 6from nonebot.adapters import Bot, Event 7 8from nonebot.adapters.cqhttp.message import Message 9 10import random 11import httpx 12import json 13import...
| NG_TO_ME | bool | 响应命令是否需要@bot | False | | | ENABLE_COMMAND_TO_IMG | bool | 是否将 rg 相关指令通过图片输出 | False | | | ENABLE_MSG_TO_IMG | bool | 是否将机器人回复通过图片输出 | False | | | NG_BLOCK_OTHERS | bool | 是否拦截其它插件的响应 | False | 开启后可能...
此函数会被 "handle_message" 调用 """cmd, current_arg = parse_command(bot,str(ctx['message']).lstrip())# 尝试解析该命令is_privileged_cmd = cmdandcmd.privilegedifis_privileged_cmdandcmd.only_to_meandnotctx['to_me']: is_privileged_cmd =Falsedisable_interaction = is_privileged_cmdifis_p...
# 将加载好的模块放⼊ _plugins logger.info(f'Succeeded to import "{module_name}"')return True except Exception as e:logger.error(f'Failed to import "{module_name}", error: {e}')logger.exception(e)return False def load_plugins(plugin_dir: str, module_prefix: str) -> int:
README.md go-cqhttp 第一次运行 go-cqhttp,需要生成 config.yml 配置文件进行加载 ./go-cqhttp faststart 1. pi@raspbian:~/Software/go_cqhttp$ ./go-cqhttp faststart 未找到配置文件,正在为您生成配置文件中! 请选择你需要的通信方式: 1: HTTP通信 ...
1I asked two people the way to the station, but ___ of them could help me.[ ] A. both B. neither C. either D. all 2I asked two people the way to the station,but ___ of them could help me.( ) A. both B. neither C. either D. all 3I asked two people the way to...
README.md go-cqhttp 第一次运行 go-cqhttp,需要生成 config.yml 配置文件进行加载 ./go-cqhttp faststart 1. pi@raspbian:~/Software/go_cqhttp$ ./go-cqhttp faststart 未找到配置文件,正在为您生成配置文件中! 请选择你需要的通信方式: 1: HTTP通信 ...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
pyproject.toml requirements.txt Repository files navigation README Apache-2.0 license test How to start generate project using nb create . create your plugin using nb plugin create . writing your plugins under src/plugins folder. run your bot using nb run . Documentation See DocsAbout...