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.0.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.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 19974c00c8cf71beed089a51357aacca02c08a2672c431c6998bbc9f60d29a8a
MD5 297aa998d6180d0f7623661424aebd15
BLAKE2b-256 2c5c2da063360d43e5c3037be512390cf230f7b316125553a1137d21e57d9e9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8d5dc81bed6a189757de6bfd903ae0deab6603d8ff4bfcd6012d198d159bcdc
MD5 63538c2670ad95c1f863ae95d3f0a9ca
BLAKE2b-256 72fb6490390a9691f5cc0d482eb183f9f8170692d8083f9badb8a4ec56ea9044

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