Coder Social home page Coder Social logo

sunsetmkt / beyondsilence Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 49 KB

BeyondSilence recognizes prolonged user inactivity on GitHub, offering a gentle acknowledgment by showing pre-set messages.

License: GNU General Public License v3.0

Python 100.00%
alive-check github-actions github-api testament will

beyondsilence's Introduction

BeyondSilence(超越寂静)

Keeping alive is much more important than keeping a will.

You don't have to face things alone.

BeyondSilence recognizes prolonged user inactivity on GitHub (Max 89 days), offering a gentle acknowledgment by showing pre-set messages. It's designed to run on a public GitHub repository with GitHub Actions.

Quick Start

BEYONDSILENCE_CONFIG

{
  "github_user_name": "MurataHimeko",
  "days_before": 15,
  "main_description": "这就是,最后一课了.....",
  "dump_config_when_triggered": true,
  "trigger_when_api_404": false,
  "messages": [
    {
      "environ": "MESSAGE1",
      "description": "姬子温柔地注视着你,不再言语。",
      "content": ""
    },
    {
      "environ": "MESSAGE2",
      "description": "琪亚娜,我已经没有什么能教你的了。",
      "content": ""
    }
  ]
}

BEYONDSILENCE_KEYS

{
  "MESSAGE1": "姬子温柔地注视着你",
  "MESSAGE2": "我已经没有什么能教你的了"
}

Run gen_env.py to get env variable BEYONDSILENCE_CONFIG and BEYONDSILENCE_KEYS.

Set BEYONDSILENCE_CONFIG and BEYONDSILENCE_KEYS in GitHub Actions Repository secrets.

Enable GitHub Actions.

The output when triggered will be written to README.md, for example:

GitHub user name: MurataHimeko

Last update time: 2024-01-07 19:04:42, triggered by inactivity of 15 days

Main description:
这就是,最后一课了.....

Messages:
MESSAGE1: 姬子温柔地注视着你,不再言语。
Value: 姬子温柔地注视着你

MESSAGE2: 琪亚娜,我已经没有什么能教你的了。
Value: 我已经没有什么能教你的了

End of output

Please be aware that BeyondSilence is not designed for large strings, there's a 48 KB limit in GitHub Action secrets.

beyondsilence's People

Contributors

sunsetmkt avatar

Stargazers

 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.