Versions in this module Expand all Collapse all v1 v1.1.4 Sep 24, 2023 Changes in this version + func ArgSplit(str string) (result []string) + func DecodeGifWithCompleteFrame(r io.Reader) (g *gif.GIF, err error) + func DeserializationElement(r string) ([]message.IMessageElement, error) + func DeserializationGroupMsg(r string) (*message.GroupMessage, error) + func FilePathWalkDir(root string) ([]string, error) + func FriendLogFields(uin int64) logrus.Fields + func FuncName() string + func GetGifDimensions(gif *gif.GIF) (x, y int) + func GroupLogFields(groupCode int64) logrus.Fields + func ImageFormat(origImage []byte) (string, error) + func ImageGet(url string, opt ...requests.Option) ([]byte, error) + func ImageGetWithoutCache(url string, opt ...requests.Option) ([]byte, error) + func ImageNormSize(origImage []byte) ([]byte, error) + func ImageReserve(imgBytes []byte) ([]byte, error) + func ImageResize(origImage []byte, width, height uint) ([]byte, error) + func ImageSuffix(name string) bool + func JoinInt64(ele []int64, sep string) string + func MergeImages(images [][]byte) ([]byte, error) + func MessageFilter(msg []message.IMessageElement, filter func(message.IMessageElement) bool) []message.IMessageElement + func PrefixMatch(opts []string, prefix string) (string, bool) + func RemoveHtmlTag(s string) string + func Retry(count int, interval time.Duration, f func() bool) bool + func SerializationElement(e []message.IMessageElement) (string, error) + func SerializationGroupMsg(m *message.GroupMessage) (string, error) + func SubImage(img image.Image, r image.Rectangle) image.Image + func Switch2Bool(s string) bool + func TimestampFormat(ts int64) string + func ToDatas(data interface{}) (map[string]string, error) + func ToParams(data interface{}) (gout.H, error) + func UnquoteString(s string) (string, error) + func UploadGroupImage(groupCode int64, img []byte, isNorm bool) (image *message.GroupImageElement, err error) + func UploadGroupImageByUrl(groupCode int64, url string, isNorm bool) (*message.GroupImageElement, error) + func UploadPrivateImage(uin int64, img []byte, isNorm bool) (*message.FriendImageElement, error) + func UrlEncode(data map[string]string) string + type EmitE struct + Id interface{} + Type concern_type.Type + func NewEmitE(id interface{}, t concern_type.Type) *EmitE + type EmitQueue struct + TimeInterval time.Duration + func NewEmitQueue(c chan<- *EmitE, interval time.Duration) *EmitQueue + func (q *EmitQueue) Add(e *EmitE) + func (q *EmitQueue) Delete(id interface{}) + func (q *EmitQueue) Start() + func (q *EmitQueue) Stop() + func (q *EmitQueue) Update(e *EmitE) + type HackedBot struct + Bot **miraiBot.Bot + func GetBot() *HackedBot + func (h *HackedBot) FindFriend(uin int64) *client.FriendInfo + func (h *HackedBot) FindGroup(code int64) *client.GroupInfo + func (h *HackedBot) GetFriendList() []*client.FriendInfo + func (h *HackedBot) GetGroupList() []*client.GroupInfo + func (h *HackedBot) GetUin() int64 + func (h *HackedBot) IsOnline() bool + func (h *HackedBot) SolveFriendRequest(req *client.NewFriendRequest, accept bool) + func (h *HackedBot) SolveGroupJoinRequest(i interface{}, accept, block bool, reason string) + func (h *HackedBot) TESTAddGroup(groupCode int64) + func (h *HackedBot) TESTAddMember(groupCode int64, uin int64, permission client.MemberPermission) + func (h *HackedBot) TESTReset() + func (h *HackedBot) TESTSetUin(uin int64)