Skip to main content

a nonebot plugin to remember words

Project description

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?.?.?,添加复习功能

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_wordsnorote-0.0.2.tar.gz (1.8 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_wordsnorote-0.0.2-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_wordsnorote-0.0.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_wordsnorote-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nonebot_plugin_wordsnorote-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ea81f55b51ee26cf6a86d464a211b88e98a1783acbd48e64ce2bd93145545a79
MD5 4e540351668963a506a187b17308ed24
BLAKE2b-256 537bbe5d00e09a87b4f7b0d359392108602aab88bdd958617db252bf865b596b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01bfc030cab1d77fd65f3aeb502eb46fbd346508a2e3951538d7dd2ffce4ec9d
MD5 76abb7aabcdcd7eb1b282469fe89112b
BLAKE2b-256 95bc03fed1c9809f8949c89b3a16a67920083bfd356df4f7889d464f6ae924dd

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