discordlogger

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: MIT Imports: 9 Imported by: 0

README

Logs errors and bot leaves/joins to a chanel

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Send errors to this discord channel
	ErrorChannel int64
	// Send bot leaves joins to this disocrd channel
	BotLeavesJoins int64
)

Functions

func EventHandler

func EventHandler(evt *eventsystem.EventData)

func OnReady

func OnReady(evt *eventsystem.EventData)

func Register

func Register()

Types

type Plugin

type Plugin struct{}

func (*Plugin) Fire

func (p *Plugin) Fire(entry *logrus.Entry) error

func (*Plugin) InitBot

func (p *Plugin) InitBot()

func (*Plugin) Levels

func (p *Plugin) Levels() []logrus.Level

func (*Plugin) Name

func (p *Plugin) Name() string

type Stringer

type Stringer interface {
	String() string
}

Jump to

Keyboard shortcuts

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