bot

package
v0.0.0-...-caf8c4a Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VERSION stores the bot version
	VERSION = "gophircbot - See https://github.com/vlad-s/gophircbot"
)

Variables

This section is empty.

Functions

func AddBasicCallbacks

func AddBasicCallbacks(irc *gophirc.IRC)

AddBasicCallbacks adds the basic set of callbacks.

func AddCTCPCallbacks

func AddCTCPCallbacks(irc *gophirc.IRC)

AddCTCPCallbacks adds the CTCP set of callbacks

func GetGif

func GetGif(query string) (reply string, err error)

GetGif returns the giphy URL of a gif, searched by "query", or an error in case it fails.

func GetTitle

func GetTitle(u string) (title string, err error)

GetTitle returns the title of a web page, or an error in case it fails.

func IsIgnored

func IsIgnored(nick string) bool

IsIgnored returns whether the supplied nick is ignored or not. Depends only on the database, the config array is verified by the framework.

func IsValidURL

func IsValidURL(u string) bool

IsValidURL returns whether a string is a valid URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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