bot

package
v0.1.1-0...-1a83ed4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(args []string, s *discordgo.Session, m *discordgo.Message)

HandlerFunc defines a handler function args: arguments used in command s: discord session m: discord message

type HandlerMap

type HandlerMap map[string]HandlerFunc

HandlerMap is a map of commands to HandlerFuncs

type JapanBot

type JapanBot struct {
	// contains filtered or unexported fields
}

JapanBot is a Discord bot with Japanese parsing abilities

func New

func New(config *config.BotConfiguration) (*JapanBot, error)

New creates a new instance of JapanBot using a given config

func (*JapanBot) Start

func (b *JapanBot) Start() error

Start starts the JapanBot instance

func (*JapanBot) Stop

func (b *JapanBot) Stop() error

Stop will stop JapanBot

Directories

Path Synopsis
set

Jump to

Keyboard shortcuts

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