Skip to content

Commit

Permalink
README: fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluzzi authored Mar 21, 2024
1 parent 4db50c7 commit 17a79b7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,15 @@ func main() {
Intents: gateway.IntentGuildMessages,
})

client.On(event.EventReady, func() {
fmt.Println("Logged in as " + client.Me().Tag())
})

client.On(event.EventMessageCreate, func(msg *discord.Message) {
if msg.Content == "ping" {
client.Channel.SendMessage(msg.ChannelId, "Pong ! 🏓")
}
})
client.On(event.EventReady, func() {
fmt.Println("Logged in as " + client.Me().Tag())
})

client.On(event.EventMessageCreate, func(msg *discord.Message) {
if msg.Content == "ping" {
client.Channel.SendMessage(msg.ChannelId, "Pong ! 🏓")
}
})

client.Login()

Expand Down

0 comments on commit 17a79b7

Please sign in to comment.