ctxext

package
v1.2.4-fix3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: GPL-3.0 Imports: 5 Imported by: 190

Documentation

Overview

Package ctxext zero ctx 扩展

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardOrNickName

func CardOrNickName(ctx *zero.Ctx, uid int64) (name string)

CardOrNickName 从 uid 获取名字

func CmdMatch added in v1.2.4

func CmdMatch(ctx *zero.Ctx) bool

CmdMatch 命令匹配

func Exists added in v1.2.4

func Exists(ctx *zero.Ctx) bool

Exists 消息含有图片返回 true

func GetMessage added in v1.2.5

func GetMessage(ctx *zero.Ctx) func(int64) zero.Message

func MustGiven added in v1.2.4

func MustGiven(ctx *zero.Ctx) bool

MustGiven 消息不存在图片阻塞60秒至有图片,超时返回 false

func NickName

func NickName(ctx *zero.Ctx) (name string)

NickName 从 args 获取名字

func SendMessage

func SendMessage(ctx *zero.Ctx, user int64) func(interface{}) int64

func UserOrGrpAdmin added in v1.2.4

func UserOrGrpAdmin(ctx *zero.Ctx) bool

UserOrGrpAdmin 允许用户单独使用或群管使用

Types

This section is empty.

Jump to

Keyboard shortcuts

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