cqfunction

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile *string

ConfigFile : bot config file

Functions

func CQSendGroupMsg

func CQSendGroupMsg(id, msg string, BotConfig *botstruct.BotConfig)

CQSendGroupMsg : Send Group message by using CoolQ HTTPAPI

func CQSendMsg added in v1.8.0

func CQSendMsg(MsgInfo *botstruct.MsgInfo, msg string, BotConfig *botstruct.BotConfig)

CQSendMsg : Send message

func CQSendPrivateMsg

func CQSendPrivateMsg(id, msg string, BotConfig *botstruct.BotConfig)

CQSendPrivateMsg : Send private message by using CoolQ HTTPAPI

func GetWebContent

func GetWebContent(Addr string) (body []byte, err error)

GetWebContent : Get web Content by using GET request.

func ReadConfig

func ReadConfig() *string

ReadConfig : Read config file.

func ReturnConfig added in v1.9.0

func ReturnConfig() *string

ReturnConfig : Return the config

func WebPostJSONContent

func WebPostJSONContent(Addr string, postbody string) (body []byte, err error)

WebPostJSONContent : Get web Content by using GET request.

Types

type TimeOutError added in v1.8.2

type TimeOutError struct {
	Addr string
}

TimeOutError : A time out error

func (*TimeOutError) Error added in v1.8.2

func (e *TimeOutError) Error() string

Jump to

Keyboard shortcuts

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