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 5 每个用户的冷却时间(秒),设为 0 则不限制

🎉 使用

指令表

指令 权限 需要@ 范围 说明
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.1.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.1.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.1.0.tar.gz
Algorithm Hash digest
SHA256 edf68706b28a1efa5e17bf1089e724ceb3bccb7b14b054d5731a75737b53c728
MD5 2b5fa60cfcb516bb59be5535d4d1d2a4
BLAKE2b-256 b75b5bbdaed1e588e71268a9b6af3f7a1bc78734f6a9eab80b4b90bc0576d26d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_auto_emojimix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dbbae3ba1e5017a823be5ab2066af5d3823577904e70427302637913d7b1f43
MD5 b1622955d6f3c77e20658fa8e6017642
BLAKE2b-256 43a013b154e629b6e039b3dbd9ee2fb2e91a0ff8b3636405eb22e5e908c5b2e2

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