Documentation ¶
Index ¶
- func Bd() string
- func CreateNewUser(userid string, db *badger.DB, m *tele.Message)
- func LocationHandler(db *badger.DB, m *tele.Message) string
- func LocationInfo(db *badger.DB, p Point) string
- func Start(db *badger.DB, m *tele.Message) string
- func UpdateLocationDB(db *badger.DB, m *tele.Message, userid string, p Point) string
- func UpdateUser(userid string, userset UserSettings, db *badger.DB, m *tele.Message)
- func UserExists(db *badger.DB, userid string) bool
- func Wc(text string, prod bool) string
- func Weather() string
- func WeatherGui() bool
- func YtDownload(command string) (string, error)
- type Date
- type Pair
- type PairList
- type Point
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewUser ¶
CreateNewUser -> add user with key userid to badgerdB
func LocationHandler ¶
LocationHandler handle incoming location
func LocationInfo ¶
LocationInfo info about city you are currently in
func UpdateLocationDB ¶
UpdateLocationDB change coordinates
func UpdateUser ¶
UpdateUser settings into badgerDB
func UserExists ¶
UserExists check if user exists in badgerDB
func YtDownload ¶
YtDownload handle video string and send path from saved file
Types ¶
type Date ¶
type Date struct { Countable bool Name string Day int Month int Year int FromToday int YearDiff int }
Date --
type UserSettings ¶
UserSettings structure which will be saved as json to db
func GetUserSettings ¶
func GetUserSettings(db *badger.DB, userid string) UserSettings
GetUserSettings TODO
Click to show internal directories.
Click to hide internal directories.