OPQBot

package module
v2.0.0-...-0c94b36 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	ApiUrl *url.URL

	MaxRetryCount int
	// contains filtered or unexported fields
}

func NewCore

func NewCore(api string, opt ...CoreOpt) (*Core, error)

func (*Core) HandlePanic

func (c *Core) HandlePanic(h func(any))

func (*Core) ListenAndWait

func (c *Core) ListenAndWait(ctx context.Context) (e error)

func (*Core) MakeAutoSign

func (c *Core) MakeAutoSign()

MakeAutoSign 定时任务 自动签到

func (*Core) On

func (c *Core) On(event events.EventName, callback events.EventCallbackFunc)

type CoreOpt

type CoreOpt func(*Core)

func WithAutoSignToken

func WithAutoSignToken(botQQ int64, groupQQ int64) CoreOpt

func WithMaxRetryCount

func WithMaxRetryCount(maxCount int) CoreOpt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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