Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

Commit

Permalink
command tree to switch case
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieDelta committed Oct 17, 2020
1 parent 5b31ce0 commit 8e7c878
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commandTree.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
)

func commandTree(command string, args []string, s *discordgo.Session, m *discordgo.MessageCreate) {
if command == "ping" {
switch command {
case "ping":
commandPing(s, m)
} else if command == "help" {
case "help":
commandHelp(args, s, m)
} else if command == "setstatus" {
case "setstatus":
commandSetStatus(args, s, m)
}
}

0 comments on commit 8e7c878

Please sign in to comment.