discord

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package discord is the discord module for T.H.O.R.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	AlertChannel string
	Token        string
	// contains filtered or unexported fields
}

Service is the main discord service struct

func (*Service) Init

func (ds *Service) Init(_logger *zerolog.Logger, _ch types.CoreMsgCh) error

Init initializes discord service

func (*Service) SendGitHubIssueAlert

func (ds *Service) SendGitHubIssueAlert(issue *github.Issue, repoName string)

func (*Service) SendGitHubPRAlert

func (ds *Service) SendGitHubPRAlert()

func (*Service) SendMessage

func (ds *Service) SendMessage(content string) error

SendMessage sends a message to the specified alert channel

func (*Service) SendYouTubeAlert

func (ds *Service) SendYouTubeAlert()

func (*Service) Stop

func (ds *Service) Stop()

Stop stops the service

Jump to

Keyboard shortcuts

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