pajban

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "bnsvc.net/bot"

UserAgent overrides the default Go user-agent (TODO)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Banned bool
	Info   json.RawMessage
}

func Banphrased

func Banphrased(ctx context.Context, url, message string) (r Result, err error)

Banphrased returns whether the message is banphrased, or an error if the API cannot be reached.

func BanphrasedTimeout

func BanphrasedTimeout(url, message string) (Result, error)

BanphrasedTimeout calls Banphrased with a standard timeout.

Jump to

Keyboard shortcuts

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