Skip to main content

nonebot

📕 nonebot_plugin_wordsnorote

✨ 哥们哥们,背单词么?哥们! ✨

license pypi python


插件描述

一款基于Nonebot2的插件

不是吧,真的有人拿QQ背单词么?!

功能是朋友提的,这个功能我感觉很鸡肋, 我一直习惯于APP背单词,推荐几款软件

但她说别人发消息QQ高频点开,这个理由好像也挺有道理,所以简单做了一个机器人插件。但无论什么方式,重在坚持

py小白,如果有任何问题、建议,欢迎issues

安装

pip install nonebot_plugin_wordsnorote

配置项

bot.py中添加

nonebot.load_plugin("nonebot_plugin_wordsnorote")

.evn中配置参数说明

config type default example usage
num_words int 20 num_words = 50 每日推送单词数量,默认20

每一个QQ号相当于一个ID,数据保存在data/wordsnoreote/student.json,其中wordID即所背单词数量

更换词库

因为我面向的是大学生,所以默认词库是考研英语,kajweb/dict仓库已将有道数据整理,包括小学到大学的课本、四六级、考研、雅思...

  1. 从仓库中下载词库
  2. 运行仓库中turn_json.py转格式(注意英标是否乱码,推荐在Mac或Linux环境下运行,微软编码默认GBK)并遍历一遍数据,查看是否有缺失
  3. 运行仓库中fix_keys.py填补缺失数据(以考研词库缺失例句与发音为例,根据实际情况修改try...expect异常)

示例

## 更新记录

2022.8.29,开始本地构建(local_test文件夹)。编写词库转格式与修复。实现插件化:修改所有文件读写路径,增加自定义单词数量、自定义词库功能

2022.8.30,反复测试,QQ合并转发不能超过100条,重构逻辑,发布至商店

202?.?.?,添加复习功能

Release files for nonebot-plugin-wordsnorote 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-wordsnorote 0.0.2
File Size Uploaded
nonebot_plugin_wordsnorote-0.0.2.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-wordsnorote 0.0.2
File Interpreter ABI Platform
nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.7 MB

Release files / nonebot_plugin_wordsnorote-0.0.2.tar.gz

Download URL nonebot_plugin_wordsnorote-0.0.2.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ea81f55b51ee26cf6a86d464a211b88e98a1783acbd48e64ce2bd93145545a79
BLAKE2b-256 checksum
How to use checksums
537bbe5d00e09a87b4f7b0d359392108602aab88bdd958617db252bf865b596b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

Release files / nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl

Download URL nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
01bfc030cab1d77fd65f3aeb502eb46fbd346508a2e3951538d7dd2ffce4ec9d
BLAKE2b-256 checksum
How to use checksums
95bc03fed1c9809f8949c89b3a16a67920083bfd356df4f7889d464f6ae924dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/18.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page