public

package
v0.0.0-...-f191df0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayStringToArrayInt64

func ArrayStringToArrayInt64(s []string) (g []int64)

func Contains

func Contains(s, substr string) bool

func EndsWith

func EndsWith(s, suffix string) bool

func IsAdmin

func IsAdmin(bot *pbbot.Bot, groupId, userId int64) bool

func IsBotAdmin

func IsBotAdmin(userId int64) bool

func IsConnErr

func IsConnErr(err error) bool

func IsGuildAdmin

func IsGuildAdmin(role []string) bool

func Prefix

func Prefix(s string, p string) (r string, b bool)

func StartsWith

func StartsWith(s, prefix string) bool

Types

type DataBase

type DataBase struct {
	User     string
	Password string
	Url      string
	Port     int
}

func DataBaseSet

func DataBaseSet() (dbset DataBase, err error)

type PluginConfig

type PluginConfig struct {
	Conf        []string
	ChannelConf []string
}

func TbotConf

func TbotConf() (c PluginConfig, err error)

type Redis

type Redis struct {
	Url      string
	Port     int
	Password string
	Table    int
	PoolSize int
}

func RedisSet

func RedisSet() (dbset Redis, err error)

Jump to

Keyboard shortcuts

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