Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

nonebot-plugin-keyword-memes

Latest version: v0.1.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: EricLin
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

nonebot-plugin-keyword-memes was last scanned on 30 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 30 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 30 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

nonebot-plugin-keyword-memes

关键词梗图:群聊里整句说出触发词,就随机发一张对应的表情包。

功能

  • 关键词触发:整句等于触发词就发图;可切换为「包含即触发」
  • 别名:一个规则可以有多个写法,例如「男的来了」和「男德」共用同一批图
  • 内容去重:图片按内容哈希命名,重复上传自动跳过
  • 安全删除:同一张图挂在多个触发词下时,删一个不会把文件删没
  • 上传/删除权限可控:默认仅超级用户,可配置为所有人
  • 按群开关:规则可绑定宿主自己的群功能开关(通过 register_switch_checker 接入)
  • 大小保护:上传和发送都有体积上限,避免大图把消息卡死
  • 纯本地存储:规则是 JSON,图片放在插件数据目录,备份就是复制一个文件夹

安装

nb plugin install nonebot-plugin-keyword-memes
# 或
pip install nonebot-plugin-keyword-memes

需要 nonebot-plugin-localstore(本插件已声明依赖)。

使用

群里直接说出触发词即可,例如:

群友:男的来了
机器人:[表情包]

管理命令(默认命令名 梗,可配置):

命令 说明 权限
/梗 查看用法 所有人
/梗 列表 列出全部触发词、图片数量与别名 所有人
/梗 查看 <触发词> 逐张预览,带序号 所有人
/梗 添加 <触发词> 附一张图,或回复一条带图消息 默认超级用户
/梗 删除 <触发词> [序号] 删单张;不带序号删整组 默认超级用户
/梗 别名 <触发词> <别名> 加别名,两个写法共用同一批图(触发词不能含空格) 默认超级用户
/梗 去别名 <触发词> <别名> 取消别名,图片保留 默认超级用户

配置

在 .env 中配置(前缀 KEYWORD_MEMES_):

配置项 默认值 说明
KEYWORD_MEMES_COMMAND 梗 管理命令名
KEYWORD_MEMES_ALIASES ["梗图"] 管理命令别名
KEYWORD_MEMES_MATCH exact exact 整句相等;contains 包含即触发
KEYWORD_MEMES_COOLDOWN 0 同一人同一群的触发冷却(秒)
KEYWORD_MEMES_UPLOAD superuser superuser 仅超级用户;everyone 所有人
KEYWORD_MEMES_MAX_UPLOAD_BYTES 8000000 单张上传大小上限
KEYWORD_MEMES_MAX_SEND_BYTES 2500000 单张发送大小上限
KEYWORD_MEMES_PRIORITY 9 触发响应器优先级
KEYWORD_MEMES_BLOCK false 命中后是否阻止后续响应器
KEYWORD_MEMES_DATA_DIR 空 自定义数据目录

接入按群开关

插件本身不假设任何开关系统。规则里的 switch 字段会交给宿主注册的判定函数:

from nonebot_plugin_keyword_memes import register_switch_checker


@register_switch_checker
async def check_switch(group_id: int | None, switch: str) -> bool:
    # 返回 False 表示本群关闭了这条规则;没有注册判定函数时一律视为开启
    return my_feature_registry.is_enabled(group_id, switch)

数据文件

<插件数据目录>/
├── rules.json          # 规则:触发词/别名 → 图片文件名
└── images/
    ├── 1a2b3c4d5e6f7788.gif
    └── ...

rules.json 示例:

{
  "version": 1,
  "rules": [
    {
      "id": "r-1a2b3c4d",
      "triggers": ["男的来了", "男德"],
      "images": ["1a2b3c4d5e6f7788.gif"],
      "switch": "",
      "cooldown": 0,
      "enabled": true
    }
  ]
}

开发

python -m venv .venv
.venv/bin/pip install -e . pytest
.venv/bin/pytest

许可

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases nonebot-plugin-keyword-memes

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229