Giter Club home page Giter Club logo

umamusume_news's Introduction

本插件已整合进 uma_plugin 性能更好,翻译显示更快

本仓库将不再更新,但是会保持一直能用(应该也不会不能用的

更新日志

22-04-28 v1.8 和整合版部分代码同步,全部更换异步函数,并移除pyyaml的依赖,减少一点响应延迟

22-01-11 v1.7 精简翻译功能,去除了每次启动星乃的连接翻译服务器时间,无需安装翻译依赖了,所以可以pip uninstall translators

21-11-09 v1.6 修复部分Html代码的影响,并通过各种预防方法尽量让插件不容易被马娘官网的反爬虫发现

21-09-28 v1.5 新增马娘名/其他游戏术语替换,让翻译更加好康一点?

21-08-10 v1.4 翻译乱码修正,再新增头图显示,方便翻译卡池预告的时候看到马娘和支援卡的图片(限卡池新闻),BTW:手机QQ记得点开图片看不然显示不完整

21-08-04 v1.3-v1.0 略~ (太多了,直接删了

使用前须知

  1. 翻译出内容会受到你服务器所在地影响,不同地区连接到不同的翻译服务器,然后翻译出的结果不一样,我也不知道为啥,我这好像大多数没啥问题就不改了2333 万一我以后遇到翻译问题我也会再改,如果你发现几个翻译问题可以再提交issue 所以万一你觉得翻译的不太行,可以到news_spider.py的第147行,添加替换,可以替换翻译完的文本,比如米浴翻成了大米洗澡,你就可以添加一句:
news_text = news_text.replace('大米洗澡', '米浴')
  1. 马娘名/其他游戏术语的文本替换在replace_dict.json里,但无法自动更新,但马娘插件整合版可以自动更新

umamusume_news

一个适用hoshinobot的赛马娘新闻插件,用于提供马娘新闻播报功能

数据来自马娘官网

本插件仅供学习研究使用,插件免费,请勿用于商业用途,一切后果自己承担

项目地址:

https://github.com/azmiao/umamusume_news/

功能

正式功能:

[马娘新闻] 查看最近五条新闻

[新闻翻译] 查看翻译命令和新闻编号(限近5条)

[新闻翻译 1] 翻译第1条新闻,编号可选值(1/2/3/4/5)

(自动推送) 该功能没有命令

简单食用教程:

可看下方链接:

https://www.594594.xyz/2021/05/01/umamusume_news_for_hoshino/

或本页面:

  1. 下载或git clone本插件:

在 HoshinoBot\hoshino\modules 目录下使用以下命令拉取本项目

git clone https://github.com/azmiao/umamusume_news
  1. 安装依赖:

到HoshinoBot\hoshino\modules\umamusume_news目录下,打开powershell运行

pip install pathos -i http://mirrors.aliyun.com/pypi/simple
  1. 在 HoshinoBot\hoshino\config\ __bot__.py 文件的 MODULES_ON 加入 'umamusume_news'

然后重启 HoshinoBot

  1. 额外功能:(自动提醒)

在某个群里发消息输入下文以开启新闻播报

开启 umamusume-news-poller

可以通过发消息输入"lssv"查看这个功能前面是不是⚪来确认是否开启成功

umamusume_news's People

Contributors

azmiao avatar girlkiller512 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.