handlers

package
v0.0.0-...-fbe8291 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotHandler

type BotHandler struct {
	Config         Configuration
	CommandsMap    map[string]string
	CommandsStruct CommandMessage
	Tweet          *anaconda.TwitterApi
	Twitch         *twitch.TwitchApi
	Lastfm         *lastfm.LastfmApi
	TimeoutList    map[string]bool
	OpList         map[string]bool
	Delay          time.Time
}

func New

func New(configFile *string) (*BotHandler, error)

New returns a new BotHandler instance

func (*BotHandler) AddCommandHandler

func (bh *BotHandler) AddCommandHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) AddTimeoutListHandler

func (bh *BotHandler) AddTimeoutListHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) CommandHandler

func (bh *BotHandler) CommandHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) DeleteCommandHandler

func (bh *BotHandler) DeleteCommandHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) ListCommandsHandler

func (bh *BotHandler) ListCommandsHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) SongHandler

func (bh *BotHandler) SongHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) TimeoutHandler

func (bh *BotHandler) TimeoutHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) TweetHandler

func (bh *BotHandler) TweetHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) UpdateChannelGameHandler

func (bh *BotHandler) UpdateChannelGameHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) UpdateChannelStatusHandler

func (bh *BotHandler) UpdateChannelStatusHandler(conn *irc.Conn, line *irc.Line)

func (*BotHandler) UptimeHandler

func (bh *BotHandler) UptimeHandler(conn *irc.Conn, line *irc.Line)

type CommandMessage

type CommandMessage struct {
	Commands []_commands
}

type Configuration

type Configuration struct {
	Channel               string
	ChannelAouth          string
	Botname               string
	Aouth                 string
	LastfmKey             string
	LastfmSecret          string
	LastfmUser            string
	TwitterConsumerKey    string
	TwitterConsumerSecret string
	TwitterAccessToken    string
	TwitterAccessSecret   string
}

Configuration struct for the config file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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