Skip to main content

对跟bot对话的每个人形成记忆,生成有趣的用户档案,用于下次生成回复,也可以通过指令查看已有的用户档案。

Project description

logo

可塑性记忆

✨ nonebot-plugin-memory ✨

LICENSE pypi python uv
ruff pre-commit

📖 介绍

对跟bot对话的每个人形成记忆,生成有趣的用户档案,用于下次生成回复,也可以通过指令查看已有的用户档案。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-memory --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-memory --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-memory --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-memory

安装仓库 master 分支

uv add git+https://github.com/lanxinmob/nonebot-plugin-memory@master
pdm
pdm add nonebot-plugin-memory

安装仓库 master 分支

pdm add git+https://github.com/lanxinmob/nonebot-plugin-memory@master
poetry
poetry add nonebot-plugin-memory

安装仓库 master 分支

poetry add git+https://github.com/lanxinmob/nonebot-plugin-memory@master

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_memory"]
使用 nbr 安装(使用 uv 管理依赖可用)

nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2

nbr plugin install nonebot-plugin-memory

使用 pypi 源安装

nbr plugin install nonebot-plugin-memory -i "https://pypi.org/simple"

使用清华源安装

nbr plugin install nonebot-plugin-memory -i "https://pypi.tuna.tsinghua.edu.cn/simple"

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
DEEPSEEK_API_KEY 配置说明

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/可塑性记忆 所有 需要 所有 输入用户id查看档案

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_memory-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_memory-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_memory-0.1.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nonebot_plugin_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b20f1806c725d0330aabc2854d0dc221f28d6c0a7d9a42428084b317de3c2de1
MD5 6d44295bb0fcaa91cb3bf04cb5ed070b
BLAKE2b-256 91fc2ff04c5a999e229a29eec85331decc5ca964a2b612c677782649654347c1

See more details on using hashes here.

File details

Details for the file nonebot_plugin_memory-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8fb0e68e17ef69b54ea19166a52c81a17fd996864925f4e43e2afed822ed43f
MD5 1c5d986b2db6c8a1d1a4b01d3280e5f3
BLAKE2b-256 6cc1e21d815ab4f77d7983247874ab9c112864bde9a71fb375fd076e5addab5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page