mirror of
https://github.com/Floriansylvain/GObot.git
synced 2026-08-19 11:43:16 +02:00
20 lines
273 B
Go
20 lines
273 B
Go
package config
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
Token string
|
|
BotPrefix string
|
|
)
|
|
|
|
func LoadConfig() error {
|
|
fmt.Println("Loading env values")
|
|
Token = os.Getenv("TOKEN")
|
|
BotPrefix = os.Getenv("BOT_PREFIX")
|
|
fmt.Println("Successfully loaded env values")
|
|
return nil
|
|
}
|