Remove useless code
This commit is contained in:
parent
d84c5e5b66
commit
ba31086469
1 changed files with 2 additions and 4 deletions
6
main.go
6
main.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue