Remove useless code

This commit is contained in:
Sebastian Cabrera 2024-01-16 16:33:50 -05:00
parent d84c5e5b66
commit ba31086469

View file

@ -27,12 +27,10 @@ func main() {
// Create a new Discord session using the provided bot token.
dg, err := discordgo.New("Bot " + token)
if err != nil {
fmt.Println("error creating Discord session,", err)
fmt.Println("Error creating Discord session,", err)
return
}
dg.UpdateGameStatus(1, "I'm programmed in Go!")
// Register the messageCreate func as a callback for MessageCreate events.
dg.AddHandler(messageCreate)
@ -42,7 +40,7 @@ func main() {
// Open a websocket connection to Discord and begin listening.
err = dg.Open()
if err != nil {
fmt.Println("error opening connection,", err)
fmt.Println("Error opening connection,", err)
return
}