Giter Site home page Giter Site 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

Stargazers

 avatar  avatar  avatar  avatar 若叶 avatar  avatar nihoamfu avatar  avatar BRIAN HAN avatar  avatar XBB avatar  avatar dddepg avatar

Watchers

nihoamfu avatar  avatar

umamusume_news's Issues

马娘名称的替换

很感谢大佬写的插件,在使用过程中发现部分名词翻译不是很好,于是自行稍微整理了下
主要是一些马的名称
text = text.replace('ピックアップ', 'pick up')
text = text.replace('ガチャ', '招募')
text = text.replace('プリティーダービー', 'Pretty Derby')
text = text.replace('サポートカード', 'support card')
text = text.replace('ライスシャワー', 'rise shower')
text = text.replace('スーパークリーク', '超级小海湾')
text = text.replace('タマモクロス', '玉藻十字')
text = text.replace('ゼンノロブロイ', '荒漠英雄')
text = text.replace('スペシャルウィーク', '特别周')
text = text.replace('サイレンススズカ', '无声铃鹿')
text = text.replace('トウカイテイオー', '东海帝皇')
text = text.replace('マルゼンスキー', '丸善斯基')
text = text.replace('オグリキャップ', '小栗帽')
text = text.replace('タイキシャトル', '大树快车')
text = text.replace('メジロマックイーン', '目白麦昆')
text = text.replace('シンボリルドルフ', '皇帝')
text = text.replace('ゴールドシップ', '黄金船')
text = text.replace('ウオッカ', '伏特加')
text = text.replace('ダイワスカーレット', '大和赤骥')
text = text.replace('グラスワンダー', '草上飞')
text = text.replace('エルコンドルパサー', '神鹰')
text = text.replace('エアグルーヴ', '气槽')
text = text.replace('マヤノトップガン', '重砲')
text = text.replace('メジロライアン', '目白赖恩')
text = text.replace('アグネスタキオン', '爱丽速子')
text = text.replace('ウイニングチケット', '胜利奖券')
text = text.replace('サクラバクシンオー', '樱花进王')
text = text.replace('ハルウララ', '乌拉拉')
text = text.replace('マチカネフクキタル', '待兼福来')
text = text.replace('ナイスネイチャ', '优秀素质')
text = text.replace('キングヘイロー', '帝王光辉')
text = text.replace('テイエムオペラオー', '好歌剧')
text = text.replace('ミホノブルボン', '美蒲波旁')
text = text.replace('セイウンスカイ', '星云天空')
text = text.replace('ファインモーション', '美妙姿势')
text = text.replace('アイネスフウジン', '艾尼斯风神')
text = text.replace('エアシャカール', '空中神宫')
text = text.replace('ゴールドシチー', '黄金城市')
text = text.replace('スマートファルコン', '醒目飞鹰')
text = text.replace('ニシノフラワー', '西野花')
text = text.replace('ビコーペガサス', '微光飞驹')
text = text.replace('フジキセキ', '富士奇迹')
text = text.replace('ヒシアマゾン', '亚马逊')
text = text.replace('アグネスデジタル', '爱丽数码')
text = text.replace('ビワハヤヒデ', '琵琶晨光')
text = text.replace('マンハッタンカフェ', '曼城茶座')
text = text.replace('ユキノビジン', '雪中美人')
text = text.replace('エイシンフラッシュ', '荣进闪耀')
text = text.replace('ナリタタイシン', '成田大进')
text = text.replace('マーベラスサンデー', '美丽周日')
text = text.replace('メイショウドトウ', '名将怒涛')
text = text.replace('メジロドーベル', '目白多伯')
text = text.replace('スイープトウショウ', '东商变革')
text = text.replace('ツインターボ', '双涡轮')
text = text.replace('ダイタクヘリオス', '大拓太阳神')
text = text.replace('ナリタブライアン', '成田拜仁')
text = text.replace('トーセンジョーダン', '东瀛佐敦')
text = text.replace('ヒシアケボノ', '菱曙')
text = text.replace('アドマイヤベガ', '爱慕织姬')
text = text.replace('カレンチャン', '真机伶')
text = text.replace('ゼンノロブロイ', '荒漠英雄')
text = text.replace('マチカネタンホイザ', '诗歌剧')
text = text.replace('イクノディクタス', '狄杜斯')
text = text.replace('キタサンブラック', '北部玄驹')
text = text.replace('サトノダイヤモンド', '里见光钻')
text = text.replace('シーキングザパール', '采珠')
text = text.replace('シンコウウインディ', '新光风')
text = text.replace('ヤエノムテキ', '八重无敌')
text = text.replace('バンブーメモリー', '青竹回忆')
text = text.replace('イナリワン', '稻荷一')
text = text.replace('カワカミプリンセス', '川上公主')
text = text.replace('ミスターシービー', 'Mr CB')
text = text.replace('サクラチヨノオー', '樱花千代')
text = text.replace('シリウスシンボリ', '天狼象征')

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.