Giter Club home page Giter Club logo

hostloc2tg's Introduction

借助ChatGPT开发的hostloc新帖推送

使用方法

一、新建.env文件,编辑以下内容并保存

BOT_TOKEN=123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ
CHANNEL_ID=-10000000000
KEYWORDS_WHITELIST=甲骨文,mjj
KEYWORDS_BLACKLIST=出,收
BLOCKED_POSTERS=5K,HOH

BOT_TOKEN是你的电报机器人API TOKEN,CHANNEL_ID是你的电报频道ID(机器人需在频道内并具有发送消息权限)
🐼KEYWORDS(白名单和黑名单)为可选配置,可以删除,默认推送全部新帖,若设置了关键字(可同时设置),则只推送/不推送包含关键字的新帖,设置多个关键字时,匹配到任一关键字都会推送/不推送,关键字以英文逗号分隔
BLOCKED_POSTERS同为可选配置,可以删除,可屏蔽指定人的发帖,以英文逗号分隔

二、新建docker-compose.yml,编辑以下内容并保存

services:
  h2tg:
    image: sheepgreen/h2tg
    container_name: h2tg
    volumes:
      - ./.env:/opt/h2tg/.env
    restart: always

三、输入docker-comopse up -d即启动成功

四、效果图

image

hostloc2tg's People

Contributors

slippersheepig 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.