Documentation ¶
Index ¶
- Variables
- func Ass_f(file string, st time.Time)
- func Assf(s string)
- func Autobanf(s string) bool
- func Autoskipf(s string) uint
- func Danmuji_auto(sleep int)
- func Danmujif(s string)
- func Gui_show(m ...string)
- func Heart(b []byte)
- func IsOn(s string) bool
- func Itos(i []interface{}) string
- func Jiezouf(s []string) bool
- func Lessdanmuf(s string, bufsize int) float32
- func Msg(b []byte)
- func Msg_senddanmu(msg string)
- func Msg_showdanmu(auth interface{}, m ...string)
- func Obs_R(on bool)
- func Obsf(on bool)
- func Reply(b []byte)
- func Saveflv_wait()
- func Saveflvf()
- func Shortdanmuf(s string) string
- func ShowRevf()
- func TTS(uid, msg string)
- type Ass
- type Autoban
- type Autoskip
- type Autoskip_item
- type Danmu_mq_t
- type Danmuji
- type Jiezou
- type Lessdanmu
- type Obs
- type Saveflv
- type Shortdanmu
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShowRev_old float64 ShowRev_start bool )
功能区 ShowRev 显示h营收
View Source
var ( Ass_height = 720 //字幕高度 Ass_width = 1280 //字幕宽度 Ass_font = 50 //字幕字体大小 Ass_T = 7 //单条字幕显示时间 Ass_loc = 7 //字幕位置 小键盘对应的位置 )
View Source
var AllF = map[string]bool{ `ShowRev`: true, "Gtk": false, "Saveflv": true, "Ass": true, "Obs": false, "Autoban": false, "Jiezou": true, "Danmuji": true, "Danmuji_auto": false, "Autoskip": true, "Lessdanmu": true, "Moredanmu": false, "Shortdanmu": true, }
功能开关
View Source
var Danmu_mq = mq.New(10)
View Source
var Heart_map = map[string]func(replyF, int){
"heartbeat": replyF.heartbeat,
}
View Source
var K_v = make(map[string]interface{})
k-v
View Source
var Msg_map = map[string]func(replyF, string){ `ENTRY_EFFECT_MUST_RECEIVE`: nil, `GIFT_BAG_DOT`: nil, `LITTLE_MESSAGE_BOX`: replyF.little_message_box, `MESSAGEBOX_USER_MEDAL_CHANGE`: replyF.messagebox_user_medal_change, `HOT_RANK_SETTLEMENT`: replyF.hot_rank_settlement, `HOT_RANK_CHANGED`: replyF.hot_rank_changed, `CARD_MSG`: nil, `WIDGET_BANNER`: nil, `ROOM_ADMINS`: nil, `ONLINE_RANK_TOP3`: nil, `ONLINE_RANK_COUNT`: nil, `ONLINE_RANK_V2`: nil, "TRADING_SCORE": nil, "MATCH_ROOM_CONF": nil, "HOT_ROOM_NOTIFY": nil, "MATCH_TEAM_GIFT_RANK": nil, "ACTIVITY_MATCH_GIFT": nil, "PK_BATTLE_PRE": nil, "PK_BATTLE_START": nil, "PK_BATTLE_PROCESS": nil, "PK_BATTLE_END": nil, "PK_BATTLE_RANK_CHANGE": nil, "PK_BATTLE_SETTLE_USER": nil, "PK_BATTLE_SETTLE_V2": nil, "PK_BATTLE_SETTLE": nil, "SYS_MSG": nil, "ROOM_SKIN_MSG": nil, "GUARD_ACHIEVEMENT_ROOM": nil, "ANCHOR_LOT_START": replyF.anchor_lot_start, "ANCHOR_LOT_CHECKSTATUS": nil, "ANCHOR_LOT_END": nil, "ANCHOR_LOT_AWARD": replyF.anchor_lot_award, "COMBO_SEND": nil, "INTERACT_WORD": replyF.interact_word, "ACTIVITY_BANNER_UPDATE_V2": nil, "NOTICE_MSG": nil, "ROOM_BANNER": nil, "ONLINERANK": nil, "WELCOME": nil, "HOUR_RANK_AWARDS": nil, "ROOM_RANK": nil, "ROOM_SHIELD": nil, "USER_TOAST_MSG": replyF.user_toast_msg, "WIN_ACTIVITY": replyF.win_activity, "SPECIAL_GIFT": replyF.special_gift, "GUARD_BUY": nil, "WELCOME_GUARD": replyF.welcome_guard, "DANMU_MSG": replyF.danmu, "ROOM_CHANGE": replyF.room_change, "ROOM_SILENT_OFF": replyF.roomsilent, "ROOM_SILENT_ON": replyF.roomsilent, "SEND_GIFT": replyF.send_gift, "ROOM_BLOCK_MSG": replyF.room_block_msg, "PREPARING": replyF.preparing, "LIVE": replyF.live, "SUPER_CHAT_ENTRANCE": nil, "SUPER_CHAT_MESSAGE_DELETE": nil, "SUPER_CHAT_MESSAGE": nil, "SUPER_CHAT_MESSAGE_JPN": replyF.super_chat_message, "PANEL": nil, "ENTRY_EFFECT": nil, "ROOM_REAL_TIME_MESSAGE_UPDATE": nil, }
Msg类型数据处理方法map
Functions ¶
func Danmuji_auto ¶
func Danmuji_auto(sleep int)
func Lessdanmuf ¶
func Msg_showdanmu ¶
func Msg_showdanmu(auth interface{}, m ...string)
弹幕显示 由于额外功能有些需要显示,为了统一管理,使用此方法进行处理
func Shortdanmuf ¶
Types ¶
type Autoskip_item ¶ added in v0.5.6
type Danmu_mq_t ¶
type Danmu_mq_t struct {
// contains filtered or unexported fields
}
type Shortdanmu ¶
type Shortdanmu struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.