Skip to content

Commit

Permalink
Uncommented stuff that was commented out during debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
OperationalDev committed Oct 6, 2020
1 parent 2ced635 commit b4dd396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# amongusmumble
Mumble Bot to scrape Among Us on-screen data and automatically mute players between rounds
Mumble Bot to mute/unmute players in Among Us.
12 changes: 3 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,12 @@ import (
"layeh.com/gumble/gumbleutil"
)

const (
// See http://golang.org/pkg/time/#Parse
timeFormat = "2006-01-02 15:04 MST"
)

var deadplayers []string
var gamestate string
var gameup bool
var gamestatetime time.Time

type Player struct {
//Action PlayerAction `json:"Action"`
Name string `json:"Name"`
Color int `json:"Color"`
IsDead bool `json:"IsDead"`
Expand Down Expand Up @@ -66,17 +60,17 @@ func socketioServer(client *gumble.Client) {
switch gamestate {
case "MENU":
log.Println("Gamemode: Menu")
//mumble.Endgame(client)
mumble.Endgame(client)
deadplayers = nil
gameup = false
case "LOBBY":
log.Println("Gamemode: LOBBY")
//mumble.Endgame(client)
mumble.Endgame(client)
deadplayers = nil
gameup = false
case "DISCUSSION":
log.Println("Gamemode: DISCUSSION")
//mumble.Meeting(client, deadplayers)
mumble.Meeting(client, deadplayers)
case "TASKS":
log.Println("Gamemode: TASKS")
gamestatetime = time.Now()
Expand Down

0 comments on commit b4dd396

Please sign in to comment.