Files
self-bot/main.go
T

25 lines
362 B
Go
Raw Normal View History

2025-03-23 13:38:56 -04:00
package main
import (
"log"
"os"
bot "ion606_bot/Bot"
"github.com/joho/godotenv"
)
2025-04-08 18:48:34 -04:00
2025-03-23 13:38:56 -04:00
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()
}