Giter Club home page Giter Club logo

domain_bot's Introduction

domain_bot

用来go语言编写检测域名过期的程序.

参数

-c 配置文件位置

配置文件

将config.yaml.bak 改为config.yaml

  • domains 是一个域名列表.

  • days 是一个整数,表示域名在过期前多少天进行提示.

  • external 是一个字符串,表示外部程序的路径.

  • method 是一个字符串,表示调用外部程序的方式(可以是 pipeargs

    外部程序推荐使用ding_pigeon 给钉钉群发送消息

  • args 是一个字符串,表示命令行参数模板(其中 {message} 将被替换为实际的消息内容)。

编译

Linux编译

go build -ldflags "-s -w" -o domain_bot main.go

windows下交叉编译

set GOOS=linux
set GOARCH=amd64
go build -ldflags "-s -w" -o domain_bot main.go

Windows编译exe

go build -ldflags "-s -w" -o domain_bot.exe main.go

domain_bot's People

Contributors

ser163 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

phuong39

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.