github-status-bot

module
v0.0.0-...-ea57e7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: MIT

README

Badge for Docker build status Badge for CI Check workflow

GitHub Status Bot

The @ghstsbot that powers the @GitHub_Status channel on Telegram.

CLi:

podman volume create ghstsbot
echo "📢📢📢
%s

Powered by https://git.io/ghstsbot" > /tmp/cdt.txt # optionally
podman create --name ghstsbot \
    -e TELEGRAM_BOT_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" \
    -e CHAT_ID="-1001234567890" \
    -e CHECK_INTERVAL=300 \
    -e CHAT_DESCRIPTION_TEMPLATE=$(cat /tmp/cdt.txt | base64 -w0)
    -v ghstsbot:/app/data \
    ghstsbot
podman start ghstsbot
podman logs -f ghstsbot

CHECK_INTERVAL defaults to be 300 if not set.

If CHAT_DESCRIPTION_TEMPLATE is not set, chat description updating will be disabled. Base64 encoding there is optional in case line break is not passed properly by shell. If present, %s should be included and will be replaced to generated content. Set it to a single %s (i.e. -e CHAT_DESCRIPTION_TEMPLATE="%s") to activate chat description updating without putting any additional text.


The project, channel and bot is not affiliated in any way with GitHub. All images related to GitHub or Octocat are used for fair use only and not covered by the copyright license of the project.

Directories

Path Synopsis
internal
bot
pkg
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL