Files
self-bot/main.go
T
2025-03-23 13:38:56 -04:00

24 lines
361 B
Go

package main
import (
"log"
"os"
bot "ion606_bot/Bot"
"github.com/joho/godotenv"
)
func main() {
// Attempt to load .env, but don't fail if not found.
_ = godotenv.Load()
// Get the bot token from the environment
bot.BotToken = os.Getenv("BOT_TOKEN")
if bot.BotToken == "" {
log.Fatal("BOT_TOKEN is not set in the environment")
}
bot.Run()
}