package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Dec 31, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BotConfig struct {
Token string
DBURI string `toml:"db_uri"`
LogsID string `toml:"logs_id"`
}
BotConfig provide struct for bot config
type Config struct {
Production bool `toml:"prod"`
Bot BotConfig
}
Config provide struct for config of bot
type Task struct {
Date time.Time `json:"date,omitempty"`
Title string `json:"title,omitempty"`
Done bool `json:"done,omitempty"`
UserID string `json:"user_id,omitempty" bson:"user_id"`
}
Task provide struct for db type task
Source Files
¶
Click to show internal directories.
Click to hide internal directories.