This commit is contained in:
xeon 2026-08-21 23:53:17 +03:00
commit 973c19f148
7 changed files with 95 additions and 0 deletions

20
internal/config/config.go Normal file
View file

@ -0,0 +1,20 @@
package config
import (
"os"
"github.com/joho/godotenv"
)
type Config struct {
Token string
}
func NewConfig() *Config {
config := &Config{}
_ = godotenv.Load()
config.Token = os.Getenv("BOT_TOKEN")
return config
}