betagovar

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BetaGoUpdateChanID  发送更新消息的频道ID
	BetaGoUpdateChanID = "8937461610423450"

	// NotifierChanID 发送消息的频道ID
	NotifierChanID = "8583973157097178"

	// ImagePath 图片存储路径
	ImagePath = "/data/images"

	// FontPath  字体存储路径
	FontPath = "/data/fonts"
)
View Source
const (
	//MemberJoined 新成员加入Type
	MemberJoined = "joined_guild"

	//MemberExited 成员退出Type
	MemberExited = "exited_guild"

	//MemberUpdate 成员信息更新Type
	MemberUpdate = "updated_guild_member"

	//MemberOnline 成员上线Type
	MemberOnline = "guild_member_online"

	//MemberOffline 成员离线Type
	MemberOffline = "guild_member_offline"

	//ChannelAddReaction 频道内用户添加 reaction
	ChannelAddReaction = "added_reaction"

	//ChannelDelReaction 频道内用户取消 reaction
	ChannelDelReaction = "deleted_reaction"

	//ChannelMessageUpdate 频道消息更新
	ChannelMessageUpdate = "updated_message"

	//ChannelMessageRemove 频道消息被删除
	ChannelMessageRemove = "deleted_message"

	//ChannelAdded 新增频道
	ChannelAdded = "added_channel"

	//ChannelModified 修改频道
	ChannelModified = "added_channel"

	//ChannelDeleted 删除频道
	ChannelDeleted = "deleted_channel"

	//ChannelTopMessage 新增频道置顶消息
	ChannelTopMessage = "pinned_message"

	//ChannelTopMessageCancel 取消频道置顶消息
	ChannelTopMessageCancel = "unpinned_message"
)

Variables

View Source
var (
	CommitMessage = os.Getenv("COM_MES")
	HTMLURL       = os.Getenv("HTML_URL")
	CommentsURL   = os.Getenv("COM_URL")
	RobotName     = os.Getenv("ROBOT_NAME")
	RobotID       = os.Getenv("ROBOT_ID")
	TestChanID    = os.Getenv("TEST_CHAN_ID")
	BetaGoTest    = os.Getenv("IS_TEST") == "true"
)

环境变量

View Source
var (
	ShortCommandShowCal     = "SC"
	ShortCommandShowAdmin   = "SA"
	ShortCommandAddAdmin    = "AA"
	ShortCommandRemoveAdmin = "RA"
	ShortCommandHelp        = "H"
	ShortCommandPing        = "P"
	ShortCommandRoll        = "R"
	ShortCommandHitokoto    = "HI"
	ShortCommandMusic       = "M"
	ShortCommandAdmin       = "A"
)

var 短命令参数

View Source
var GlobalSession = khl.New(os.Getenv("BOTAPI"), plog.NewLogger(&log.Logger{
	Level:  log.InfoLevel,
	Writer: &log.ConsoleWriter{},
}))

GlobalSession 全局共享session

Functions

This section is empty.

Types

type CardMessageColModule added in v0.0.5

type CardMessageColModule struct {
	Type string `json:"type"`
	Text []struct {
		Type   string `json:"type"`
		Cols   int    `json:"cols"`
		Fields []struct {
			Type    string `json:"type"`
			Content string `json:"content"`
		}
	}
}

CardMessageColModule khl cardmessage Col

type CardMessageModule

type CardMessageModule struct {
	Type  string `json:"type"`
	Title string `json:"title"`
	Src   string `json:"src"`
	Cover string `json:"cover"`
}

CardMessageModule khl cardmessage

type CardMessageTextModule

type CardMessageTextModule struct {
	Type string `json:"type"`
	Text struct {
		Type    string `json:"type"`
		Content string `json:"content"`
	} `json:"text"`
}

CardMessageTextModule khl cardmessage Text

Jump to

Keyboard shortcuts

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