Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InitAppInfo []*AppInfo // 初始化时应用信息列表 InitTaskInfo []*AppTaskInfo // 初始化时任务列表 )
Functions ¶
Types ¶
type AppInfo ¶
type AppInfo struct { Name string // Name 应用名称 DisplayName string // DisplayName 应用显示名称 Keys []string // Keys 应用关键字 Expand Expand // Expand 扩展 Pointer Apper // Pointer 应用实例 指针 }
AppInfo 应用信息
type AppTaskInfo ¶
type AppTaskInfo struct { Name string // 任务名称 Spec string // 执行时间 QQID uint64 // 任务目标 Pointer AppTaskr // 应用实例 }
AppTaskInfo 应用任务信息
type Chain ¶
type Chain struct { Type string // 类型:text、image、at Text string // text URL string // image QQ uint64 // at }
Chain 消息链
type Expand ¶
type Expand []struct { Name string // 扩展名称 DisplayName string // 扩展显示名称 Keys []string // 扩展关键字 Limit []string // 扩展值限制 Require bool // 是否必须 Default string // 默认值 }
Expand 扩展
type Idol ¶
type Idol struct { ID string // 主键 Name string // 角色名 SeiyuuName string // 声优名 Key []string // 关键字 Twitter twitter // Twitter 相关 }
Idol 偶像
type QQMsg ¶
type QQMsg struct { Type *Idol // 偶像 Chain []Chain // 消息链 Call map[string]string // 参数 Group struct { ID uint64 // 群号 Name string // 群名 } // 群相关 User struct { ID uint64 // QQ号 Name string // QQ名 } // 用户相关 }
QQMsg 接收的 QQ 消息
Click to show internal directories.
Click to hide internal directories.