Rename Bot main function

This commit is contained in:
2023-12-15 05:58:01 -06:00
parent a23d9e881f
commit 490cd9c911

View File

@@ -20,7 +20,7 @@ var (
db *redis.Client
)
func bot() {
func Bot() {
// Setup the session parameters
session, err := discordgo.New("Bot " + os.Getenv("BOT_TOKEN"))
if err != nil {
@@ -114,9 +114,9 @@ func main() {
Scan()
case "bot":
log.Printf("Running bot")
bot()
Bot()
default:
log.Printf("Running bot (default)")
bot()
Bot()
}
}