Notifier is a Go library to send notification to other applications.

Overview

notifier

CI

notifier is a simple Go library to send notification to other applications.

Feature

Provider Code
DingTalk provider/dingtalk
Bark provider/bark
Lark provider/lark
Feishu provider/feishu
Server 酱 provider/serverchan

Install

go get -u github.com/moond4rk/notifier

Usage

package main

import (
	"os"

	"github.com/moond4rk/notifier"
)

func main() {
	var (
		dingtalkToken     = os.Getenv("dingtalk_token")
		dingtalkSecret    = os.Getenv("dingtalk_secret")
		barkKey           = os.Getenv("bark_key")
		barkServer        = notifier.DefaultBarkServer
		feishuToken       = os.Getenv("feishu_token")
		feishuSecret      = os.Getenv("feishu_secret")
		larkToken         = os.Getenv("lark_token")
		larkSecret        = os.Getenv("lark_secret")
		serverChanUserID  = "" // server chan's userID could be empty
		serverChanSendKey = os.Getenv("server_chan_send_key")
	)
	notifier := notifier.New(
		notifier.WithDingTalk(dingtalkToken, dingtalkSecret),
		notifier.WithBark(barkKey, barkServer),
		notifier.WithFeishu(feishuToken, feishuSecret),
		notifier.WithLark(larkToken, larkSecret),
		notifier.WithServerChan(serverChanUserID, serverChanSendKey),
	)

	var (
		subject = "this is subject"
		content = "this is content"
	)
	if err := notifier.Send(subject, content); err != nil {
		panic(err)
	}
}

Releases(v0.1.1)
Owner
ᴍᴏᴏɴD4ʀᴋ
ᴛʜᴇʀᴇ ɪs ɴᴏ ᴅᴀʀᴋ sɪᴅᴇ ᴏғ ᴛʜᴇ ᴍᴏᴏɴ ʀᴇᴀʟʟʏ. ᴍᴀᴛᴛᴇʀ ᴏғ ғᴀᴄᴛ ɪᴛ's ᴀʟʟ ᴅᴀʀᴋ.
ᴍᴏᴏɴD4ʀᴋ
Notify - Notification microservice for sending templated payloads as Slack messages

Notify Notify is a microservice that takes an event & payload from an applicatio

BritBus 1 Jan 5, 2022
send current weather updates from openweathermap api to your slack profile status using github action

go-slack-weather Send current weather updates from OpenWeatherMap API to your Slack profile status using GitHub Action Contents Setup Change Update Pe

Muhammad Thomas Fadhila Yahya 4 Dec 6, 2021
The serverless OTP telegram service use telegram as OTP service, and send OTP through webhook

Setup OTP First thing, you need prepare API(webhook) with POST method, the payload format as below { "first_name": "Nolan", "last_name": "Nguyen",

Dong Nguyen 2 Jan 5, 2022
Send Slack reports of pull requests pending review

preport Born out of a desire to get pull requests reviewed faster without having to send manual reminders, preport generates reports of GitLab pull re

Emile 1 Nov 23, 2021
Personal service to send me telegram notifications from various scripts, services etc.

ress_notification_service Personal utility to send me telegram notifications from various scripts, services etc. Stack used here: Go Gin web framework

Alex Antipov 0 Dec 7, 2021
Send Linux mails to Slack with golang

LinuxMailToSlack Install go install github.com/TKMAX777/[email protected] sudo

TKMAX777 1 Jan 7, 2022
Discord-notif - Send notifications to discord in Your pipelines or scripts

discord-notif Send notifications to discord in Your pipelines or scripts install

null 3 Mar 2, 2022
Client to send messages to channels in Slack.

Slack Client A simple client to send messages to channels in Slack. Example package main import { "fmt" slack "github.com/tommzn/go-slack" }

Tommzn 1 Mar 13, 2022
Auto send check-in message to Slack channel at a specific time.

Auto Slack Check-in auto-slack-checkin is a command line interface (CLI) that sends check-in or check-out message for you while you are sleeping ??.

Hugh Do 3 Feb 15, 2022
This repository will guide you to steal whatever the user copies and send content to telegram bot.

copy-clipboard-stealer-with-telegram This repository will guide you to steal whatever the user copies and send content to telegram bot. Setting Envior

Jhangju 1 Mar 14, 2022
Denial of Service Bot made in golang that uses ghostbin or any other binsite as a C2

Zloduh Denial of Service Bot made in golang that uses ghostbin or any other binsite as a C2 Control all of your bots from one place Usage --> go run P

null 1 Dec 3, 2021
Genpc - Discord bot for automating Numenera (and eventually other system) tables

GenPC Discord bot for automating Numenera (and eventually other system) tables.

Maxwell Banks 0 Feb 16, 2022
Library for testing interactive Slack applications.

Slackster Library for testing interactive Slack applications. Mock Slack API: user info, post and update message, publish view. Testing Slack UI in th

 Юла 16 May 12, 2022
Library for working with golang telegram client + bot based on tdlib. This library was taken from the user Arman92 and changed for the current version of tdlib.

go-tdlib Golang Telegram TdLib JSON bindings Install To install, you need to run inside a docker container (it is given below) go get -u github.com/ka

Rostislav Krivets 18 Apr 16, 2022
Go library for Telegram Bot API

tbot - Telegram Bot Server Features Full Telegram Bot API 4.7 support Zero dependency Type-safe API client with functional options Capture messages by

Alexey Grachov 324 May 9, 2022
A general-purpose bot library inspired by Hubot but written in Go. :robot:

Joe Bot ?? A general-purpose bot library inspired by Hubot but written in Go. Joe is a library used to write chat bots in the Go programming language.

Joe Bot 447 May 13, 2022
Flexible message router add-on for go-telegram-bot-api library.

telemux Flexible message router add-on for go-telegram-bot-api library. Table of contents Motivation Features Minimal example Documentation Changelog

Andrew Dunai 17 Apr 26, 2022
Our library to interact with a telegram bot.

gotelegrambot Here you can find our library for telegram bot's. We develop the API endpoints according to our demand and need. You are welcome to help

J&J Ideenschmiede GmbH 0 Dec 18, 2021
Wrapper library for github.com/tucnak/telebot to create simple text-based Telegram bots

tbwrap Wrapper library for github.com/tucnak/telebot to create simple text-based Telegram bots Installation go get github.com/enrico5b1b4/tbwrap Exam

null 0 Dec 7, 2021