Git Product home page Git Product logo

hitokoto-box's Introduction

hitokoto-box

🌧将一条随机一言显示在 pinned gist


中文 | English

📌✨ 若想了解更多类似我的 pinned gist 项目,请查看:https://github.com/matchai/awesome-pinned-gists

使用

准备工作

  1. 创建一个公开的 GitHub Gist,文件名为🌧Hitokoto (https://gist.github.com/)
  2. 创建一个GitHub token,需要勾选 gist 权限,复制刚才创建的 token (https://github.com/settings/tokens/new)

安装

  1. Fork 我

  2. 进入你 fork 的仓库的 Actions 标签页,启用 Update gist with new hitokoto workflow

  3. .github/workflows/update.yml 中编辑环境变量

    • GIST_ID: 你的 gist url 的ID部分(后缀) https://gist.github.com/greenhandatsjtu/8c2cd8ea266a45c1aa9cb5f78d066b60.
    • CATEGORY: 你希望hitokoto-box获取的一言的类别,所有类别的编码在这里。默认值为 abh,代表动画、漫画、影视。若希望获取所有类别的一言,将本环境变量置空即可。
  4. hitokoto-box默认每小时更新一次一言,如果你想更改更新频率,需要在 .github/workflows/update.yml 中编辑 cron

  5. 前往仓库的 Settings > Secrets

  6. 点击 New repository secret 并添加如下仓库秘密 (repository secrets) :

    • GH_TOKEN: 刚才复制的 GitHub token

hitokoto-box's People

Contributors

greenhandatsjtu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.