xkcdbot

package
v0.0.0-...-993cae5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCommandName = `xkcd`
	Description        = `Fetch an XKCD comic image`
	Params             = `get <ID>|random|latest`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(timeout time.Duration, ctxFunc ContextFunc) *Bot

func (*Bot) Fetch

func (b *Bot) Fetch(cmd *bot.Cmd) (string, error)

type ContextFunc

type ContextFunc func() context.Context

Jump to

Keyboard shortcuts

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