Documentation ¶
Index ¶
- Variables
- func CQSendGroupMsg(id, msg string, BotConfig *botstruct.BotConfig)
- func CQSendMsg(MsgInfo *botstruct.MsgInfo, msg string, BotConfig *botstruct.BotConfig)
- func CQSendPrivateMsg(id, msg string, BotConfig *botstruct.BotConfig)
- func GetWebContent(Addr string) (body []byte, err error)
- func ReadConfig() *string
- func ReturnConfig() *string
- func WebPostJSONContent(Addr string, postbody string) (body []byte, err error)
- type TimeOutError
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigFile *string
ConfigFile : bot config file
Functions ¶
func CQSendGroupMsg ¶
CQSendGroupMsg : Send Group message by using CoolQ HTTPAPI
func CQSendPrivateMsg ¶
CQSendPrivateMsg : Send private message by using CoolQ HTTPAPI
func GetWebContent ¶
GetWebContent : 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
Click to show internal directories.
Click to hide internal directories.