a nonebot plugin to remember words
Project description
📕 nonebot_plugin_wordsnorote
✨ 哥们哥们,背单词么?哥们! ✨插件描述
一款基于Nonebot2的插件
不是吧,真的有人拿QQ背单词么?!
功能是朋友提的,这个功能我感觉很鸡肋, 我一直习惯于APP背单词,推荐几款软件
- 电脑:Uahh/ToastFish: 一个利用摸鱼时间背单词的软件(少有且好用的电脑端单词软件!)
- 手机:扇贝单词
- 平板:欧陆词典(功能强大!)
但她说别人发消息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仓库已将有道数据整理,包括小学到大学的课本、四六级、考研、雅思...
- 从仓库中下载词库
- 运行仓库中
turn_json.py
转格式(注意英标是否乱码,推荐在Mac或Linux环境下运行,微软编码默认GBK)并遍历一遍数据,查看是否有缺失 - 运行仓库中
fix_keys.py
填补缺失数据(以考研词库缺失例句与发音为例,根据实际情况修改try...expect
异常)
示例
2022.8.29,开始本地构建(local_test文件夹)。编写词库转格式与修复。实现插件化:修改所有文件读写路径,增加自定义单词数量、自定义词库功能
2022.8.30,反复测试,QQ合并转发不能超过100条,重构逻辑,发布至商店
202?.?.?,添加复习功能
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_wordsnorote-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea81f55b51ee26cf6a86d464a211b88e98a1783acbd48e64ce2bd93145545a79 |
|
MD5 | 4e540351668963a506a187b17308ed24 |
|
BLAKE2b-256 | 537bbe5d00e09a87b4f7b0d359392108602aab88bdd958617db252bf865b596b |
Close
Hashes for nonebot_plugin_wordsnorote-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01bfc030cab1d77fd65f3aeb502eb46fbd346508a2e3951538d7dd2ffce4ec9d |
|
MD5 | 76abb7aabcdcd7eb1b282469fe89112b |
|
BLAKE2b-256 | 95bc03fed1c9809f8949c89b3a16a67920083bfd356df4f7889d464f6ae924dd |