config

package
v0.0.0-...-9989f86 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name    string `yaml:"name"`
	Type    string `yaml:"type"`
	Command string `yaml:"command"`
	Words   string `yaml:"words"`
	Desc    string `yaml:"desc,omitempty"`

	//HTTPCommand
	HttpURL    string `yaml:"url,omitempty"`
	HttpMethod string `yaml:"method,omitempty"`

	//BuiltinCommand
	Func string `yaml:"func,omitempty"`
}

type Config

type Config struct {
	Botname      string         `yaml:"name"`
	Commands     []Command      `yaml:"commands"`
	IRCGateway   []IRCGateway   `yaml:"irc,omitempty"`
	SlackGateway []SlackGateway `yaml:"slack,omitempty"`
}

type IRCGateway

type IRCGateway struct {
	Name     string   `yaml:"name"`
	Server   string   `yaml:"server"`
	UseSSL   bool     `yaml:"ssl,omitempty"`
	Channels []string `yaml:"channels"`
}

type SlackGateway

type SlackGateway struct {
	Name  string `yaml:"name"`
	Token string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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