repeater

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixed

type Fixed struct {
	// contains filtered or unexported fields
}

Fixed 提供了一个复读模型,复读的概率为固定值

func GetFixed

func GetFixed(groupID int64) *Fixed

GetFixed 根据群号获取对应群的复读模型

func (Fixed) GetProp

func (f Fixed) GetProp() string

GetProp 获取复读概率

func (Fixed) GetRepeatedCount

func (f Fixed) GetRepeatedCount() int

GetRepeatedCount 获取当前正在复读的消息已经复读了多少次

func (*Fixed) NeedRepeat

func (f *Fixed) NeedRepeat(m string) bool

NeedRepeat 判断是否需要复读

func (*Fixed) SetProp

func (f *Fixed) SetProp(p float64) bool

SetProp 设置复读概率

Jump to

Keyboard shortcuts

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