wechat-backend

command module
v0.0.0-...-33f656b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 18 Imported by: 0

README

Docker Pulls HitCount

WeChat Backend

As a robot, I can take care of some simple works for you.

Features

  • Welcome new members
  • Auto Replay as Code
  • Update backend configuration via WebHook (GitHub)

Auto-reply

This robot will auto replay by configured files. You should put those config files into a fixed directory: /management/auto-reply. It will reply a fixed sentence if there's no matched word. But you can give it a config file which contains the keyword unknown.

The structure of the config file like blew:

keyword: join
msgType: text
content: There is the sentence which will be replyed

See some examples from here.

Docker

One simple command could bring the WeChat backend up:

docker run -t -p 12345:8080 -v /var/wechat/config:/config jenkinszh/wechat-backend:v0.0.1

Sample config.yaml:

token: wechat-token
git_url: https://github.com/jenkins-zh/wechat
git_branch: master
github_webhook_secret: github-secret
appID: wechat-appid
appSecret: wechat-appsecret
server_port: 8080

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
api
mock/article
Package mock_article is a generated GoMock package.
Package mock_article is a generated GoMock package.

Jump to

Keyboard shortcuts

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