discord-bot

command module
v0.0.0-...-60ae2bb Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 7 Imported by: 0

README

Discord-bot

A command line tool for send message to Discord webhook URL.

Installation

  • Build from this Sources.

if you have a Go env

  • Use Makefile or self build

Author's env go version go1.17 darwin/amd64

Set up

config.json is required

  1. make dir $HOME/.config/discord-bot and put config.json to ~/.config/discord-bot/
  2. make config.yaml into ~/.config/gtodo/
# config.json
[
    {
        "avatar_url": "BOT's icons image url",
        "username": "BOT's user name(anything)",
        "webhook_url": "your discord webhook url"
    }
]

How to use

Usage: discord-bot [options]
    Post message to Discord webhook URL.

Command:
    -i <message>    send <message> and host CPU & Memory & Temperature Info to discord webhook url.
    -s <message>    send <message> to discord webhook url.
    -h              Print Help message
    -v              Print the version of this application

I have installed the command on my server and run it periodically by cron. By doing so, I can check the survival of the server.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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