Coder Social home page Coder Social logo

edu-lark-bot's Introduction

edu-lark-bot

爱丁飞书机器人

爱丁飞书机器人推送每日诗句及图片的实现原理:

  1. github action 触发每日定时任务;
  2. 请求“今日诗词” api 随机选择一句**古诗词;
  3. 将诗词作为参数,使用 Bing 生成图片并保存;
  4. 调用飞书 api 上传图片,返回 image_key(需要注册飞书应用并开启权限);
  5. 组装飞书消息格式富文本(text + img);
  6. 推送到对应群的机器人 webhook;
  7. 飞书群收到消息

TODO:

  • 使用飞书应用推送消息而不是用 webhook;
  • 使用 openai 的 api先将诗句翻译为英文再生成图片,效果可能更好;
  • 生成的四张图片可否以缩略图方式都推送到飞书

edu-lark-bot's People

Contributors

roostinghawk avatar

Stargazers

 avatar

Watchers

 avatar

edu-lark-bot's Issues

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.