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 hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page