utils

package
v0.0.0-...-d71c2e5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAscii

func GenerateAscii(s string) string

GenerateAscii generates an ascii art text from a given string.

func GenerateRandomNumber

func GenerateRandomNumber() string

GenerateRandomNumber generates a random sequence string

func IsAdmin

func IsAdmin(admins []tb.ChatMember, user *tb.User) bool

IsAdmin checks whether a user is in the admin list

func IsIn

func IsIn(arr []string, value string) bool

IsIn checks whether a value is inside the given slice of string.

func SanitizeInput

func SanitizeInput(inp string) string

func ShouldAddSpace

func ShouldAddSpace(m *tb.User) string

ShouldAddSpace thinks whether to add a space to the given user, considering their first name and last name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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