Git Product home page Git Product logo

dailynews's Introduction

dailynews 60s读懂世界

一个很简单的每日早报小插件

api地址 感谢api作者

安装方法

懒人法

  将dailynews.py丢入任意一个已启用模块中然后重启hoshino

不是懒人法

  • HoshinoBot\hoshino\modules下新建一个文件夹
  • dailynews.py放入其中
  • HoshinoBot\hoshino\config\__bot__.py 文件的 MODULES_ON 里加入新建的文件夹的名字
  • 重启hoshino

依赖要求

aiocqhttp>=1.4

如果你的Hoshino一直保持最新版本,那一定符合此要求

如果你在使用旧版本并且不愿意更新,可以将代码中两处使用MessageSegment.image的地方将cache参数去掉,该参数的作用是避免重复下载

使用方式

[启用 dailynews] 插件默认禁用,需要手动开启

启用后,将会在每天早上发送一份早报

[@bot 今日早报] (测试用)手动获取一份早报

注意

  • 该api使用量应该不小,所以一天过去的越久,早报图片的发送次数越多,在晚上发送可能会风控
  • 自动推送偶尔会发生读取json出错的情况,推测可能是网络波动

鸣谢

Hoshino 星乃真好玩

早报api 虽然我不知道这个api哪里来的也不知道是谁写的

License

This project is licensed under GLWTPL

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.