Documentation ¶
Overview ¶
Package command contains all the commands
Package config holds everything related to configuration
Index ¶
- Constants
- Variables
- func AnyInSliceIntoString(a string, list []string) (string, bool)
- func Delete(bucketName string, key string) error
- func DeleteRedundantSpaces(a string) string
- func IsChatAdminUser(bot *tgbotapi.BotAPI, m tgbotapi.Message) bool
- func Update(bucketName string, key string, dataStruct interface{}) error
- func View(bucketName string, key string, dataStruct interface{}) error
- func ViewAll(bucketName string, dataStruct []interface{}) error
Constants ¶
View Source
const BoltDBPath = "minolobot.db"
Variables ¶
View Source
var ( // BoltDB wrapper BoltDB *bolt.DB )
View Source
var (
ToStringTransformer transform.Transformer
)
Functions ¶
func AnyInSliceIntoString ¶
AnyInSliceIntoString check if the string contains any string from the slice
func DeleteRedundantSpaces ¶
DeleteRedundantSpaces if the string contain more than a space, it replace it by 1 space
func IsChatAdminUser ¶
func IsChatAdminUser(bot *tgbotapi.BotAPI, m tgbotapi.Message) bool
Check if the user that send the message is admin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.