Skip to main content

插件描述

Project description

logo

✨ nonebot-plugin-auto-emojimix ✨

LICENSE python Adapters

uv ruff

📖 介绍

更好的emoji合成,长期跟踪上游数据源。支持两种触发方式:

  • 显式模式:发送 emoji+emoji(如 😂+🥺)触发合成
  • 自动模式:消息内包含两个相邻的 emoji(如 😂🥺)自动检测并合成(需配置开启)

数据来源:xsalazar/emoji-kitchen-backend,包含 14 万+ 种 emoji 组合。

💿 安装

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

使用 pypi 源安装

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

使用清华源安装

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

安装仓库 main 分支

uv add git+https://github.com/Misty02600/nonebot-plugin-auto-emojimix@main
pdm
pdm add nonebot-plugin-auto-emojimix

安装仓库 main 分支

pdm add git+https://github.com/Misty02600/nonebot-plugin-auto-emojimix@main
poetry
poetry add nonebot-plugin-auto-emojimix

安装仓库 main 分支

poetry add git+https://github.com/Misty02600/nonebot-plugin-auto-emojimix@main

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

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

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

nbr plugin install nonebot-plugin-auto-emojimix

使用 pypi 源安装

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

使用清华源安装

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

⚙️ 配置

在 nonebot2 项目的 .env 文件中添加以下配置:

配置项 必填 默认值 说明
emojimix_explicit True 是否启用显式合成
emojimix_auto True 是否启用自动模式(检测相邻 emoji 自动合成)
emojimix_cd 60 每个用户的冷却时间(秒),设为 0 则不限制
# 启用显式合成
emojimix_explicit=true
# 启用自动合成
emojimix_auto=true
# 设置冷却时间
emojimix_cd=3

🎉 使用

指令表

指令 权限 需要@ 范围 说明
emoji+emoji 所有 私聊/群聊 显式合成两个 emoji
(自动检测) 所有 私聊/群聊 消息中包含两个相邻 emoji 自动合成

更新数据

如果需要更新 emoji 组合数据(跟踪上游新增组合),克隆项目后运行:

uv run python scripts/update_emoji_data.py

脚本会自动检查上游是否有更新,有则下载并重新生成数据库。

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_auto_emojimix-0.2.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_auto_emojimix-0.2.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_auto_emojimix-0.2.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.2.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_auto_emojimix-0.2.1.tar.gz
Algorithm Hash digest
SHA256 10ed1cd43f791e23b37702cda445ca160ab11ee078332ce0932c71fbe175d161
MD5 17e8162be470152fb619bde54aa46cb9
BLAKE2b-256 00bed03eb7380b72c8e311b4d22ef0e57d403423bfda58f70732b459c59e6de5

See more details on using hashes here.

File details

Details for the file nonebot_plugin_auto_emojimix-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_auto_emojimix-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a14d34df03fa93d19c0e35098165f102c255b9ae50e3fd28e624a3b4ff99be
MD5 7ea444d513a656a480a748d53ba5bfd8
BLAKE2b-256 1a4540f17db9715975f495346ac9b2149c1c8954994c20ad2f16ff45353e3952

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