Giter VIP home page Giter VIP logo

dingtalkbot's Introduction

DingTalkBot

代码可用性: DingTalk_misson

这是什么

基于python写的钉钉机器人,通过GitHub Action定时任务实现自动化。

有什么用

可以零成本创建属于自己的钉钉机器人,定时推送订阅内容(例如优惠消息等线报亦或是喜欢UP主的更新);而且完全基于GitHub,也就是说你不需要了解任何编程知识,只需要按照教程稍微部署一下即可获得一个属于自己的钉钉机器人。

如何使用

详细使用教程见 我的博客

  1. Fork此项目
  2. 在Fork的仓库中添加三个secret(secret,token,mids)
  3. 启动GitHub action(fork的仓库默认没开启action)
  4. 点击star开始执行Action(第一次star之后就会自动定时运行)

其他

本项目的Action任务参考借鉴于WakeLeanCloud
本项目目前只实现了基于小刀网的线报推送与bilibili的up主投稿推送,监测间隔是两小时
如果有其他想要实现的功能可以提个issue。
如果想要更改检测频率请自行修改yml里的corn表达式,详细见修改时间间隔
执行日志目前仅在action任务中有显示,如果有需要的话可以像WakeLeanCloud一样在仓库添加log文件(提个issue吧)。

修改时间间隔

首先修改 /.github/workflows/DingTalk_misson.yml 文件中的cron表达式,具体语法说明可以参考官方文档,如果需要测试可以使用官方提供的测试网站crontab guru
然后修改 run.py 文件,将 if ac_time<7200 : 中的7200修改为其他时间间隔数值,请注意单位为秒。
未来或许会优化代码将它统一到yml中修改。

未来

  • 为了功能多样化与个性化,增加推送订阅的线报、视频以及其他网站,并通过模块化的方案供用户自己选择启用。
  • debug info的规范化,使用户能更明了的查看程序的具体运行情况。
  • 自动拉取仓库更新
  • 添加GitHub action缓存,优化启动速度。

以上内容多启发于@JunzhouLiu的仓库JunzhouLiu/BILIBILI-HELPER。总之从他人的仓库里学到了很多,意识到了自己还欠缺了很多。也希望自己的代码规范以及内容能向这些大佬看齐。然而独木不成林,非常希望您能看到这段话有感而发,与我共同建设这个项目。

dingtalkbot's People

Contributors

liuyunfz avatar 891809266 avatar

Stargazers

 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.