remove bmath's test account finally. thanks for all the fish

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-23 19:44:10 -07:00
parent 8b041a97d7
commit 1c0b51bb11
2 changed files with 3 additions and 32 deletions

33
main.go
View File

@ -191,24 +191,6 @@ func buttonClick(b *gui.ButtonMap) {
} }
} }
} }
if (b.Note == "BMATH") {
log.Println("\tTRIGGER BMATH HERE")
log.Println("\tTRIGGER BMATH HERE")
log.Println("\tTRIGGER BMATH HERE")
gui.Data.State = "bmath"
for {
log.Println("Sleep() in buttonClick() gui.Data.State =", gui.Data.State)
time.Sleep(200 * time.Millisecond)
if (gui.Data.State == "NEW PROTOBUF") {
count := countVMS(currentMessage)
name := "Bmath VMs"
mh := gui.AddVmsTab(name, count)
ReadReceivedData(currentMessage, mh)
currentMessage = nil
return
}
}
}
} }
if (gui.Data.State == "splash") { if (gui.Data.State == "splash") {
gui.ShowAccountQuestionTab() gui.ShowAccountQuestionTab()
@ -236,13 +218,6 @@ func watchGUI() {
count += 1 count += 1
time.Sleep(200 * time.Millisecond) time.Sleep(200 * time.Millisecond)
if (gui.Data.State == "bmath") {
log.Println("\tTRIGGERING BMATH HERE")
log.Println("\tTRIGGERING BMATH HERE")
log.Println("\tTRIGGERING BMATH HERE")
event := pb.MakeGetEvent()
gorillaSendProtobuf(event)
}
if (gui.Data.State == "SEND WEBSOCKET") { if (gui.Data.State == "SEND WEBSOCKET") {
log.Println("\tTRIGGERING WEBSOCKET HERE on AccNick =", gui.Data.AccNick) log.Println("\tTRIGGERING WEBSOCKET HERE on AccNick =", gui.Data.AccNick)
log.Println("\tTRIGGERING WEBSOCKET HERE on AccNick =", gui.Data.AccNick) log.Println("\tTRIGGERING WEBSOCKET HERE on AccNick =", gui.Data.AccNick)
@ -252,12 +227,8 @@ func watchGUI() {
event.Token = config.String("accounts." + gui.Data.AccNick + ".token") event.Token = config.String("accounts." + gui.Data.AccNick + ".token")
log.Println("\tTRIGGERING WEBSOCKET HERE with event.Token =", event.Token) log.Println("\tTRIGGERING WEBSOCKET HERE with event.Token =", event.Token)
if (gui.Data.AccNick == "bmath") { gorillaSendProtobuf(event)
gorillaSendProtobuf(event) gui.Data.State = "READ PROTOBUF"
gui.Data.State = "READ PROTOBUF"
} else {
gui.Data.State = "NEW PROTOBUF"
}
} }
if (gui.Data.State == "kill") { if (gui.Data.State == "kill") {
log.Println("gui.State = kill") log.Println("gui.State = kill")

View File

@ -17,7 +17,7 @@
"username": "jcarr@wit.com", "username": "jcarr@wit.com",
"port": 3333, "port": 3333,
"proto": "tcp", "proto": "tcp",
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjoyLCJyIjoiIiwiY3NyZiI6Ik9rR0JWenphV2cxQjVlN0R5YjRXSzIyWCIsImV4cCI6MTU1OTE4NTc1MiwiaXNzIjoid2l0Iiwic3ViIjoiYm1hdGhAd2l0LmNvbSJ9.vdOAXyt3VIovqEIbivgt6upqR8glZv2UdzFcyudzCmGV-msdZWi_9TZaATyQMxEaVD3K6gRunakyOWK0jw4xxeDUbQym86IKMU2UOjp0tN0z72OmH822NmQ8_AgWiKNI", "token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCJ9.eyJ4IjozLCJyIjoiIiwiY3NyZiI6InRBY1p2eXVJbk1YdWUxV0RSbDFIeDI5YSIsImV4cCI6MTU1OTI3MDQwMCwiaXNzIjoid2l0Iiwic3ViIjoiamNhcnJAd2l0LmNvbSJ9.bqXX_6yrUHQGYh3SEmW8ydSa9Xfqx-HIKutTN_GirwhC_VrVX1xJBcgYfjdKGegvwY7Td1vO3rs40Iz7ifcptrtdzJnDX62d_1JJPKBHUQUfnTLr2qoTgaljElFM0Q_e",
"rows": 18 "rows": 18
}, },
"jcarr2": { "jcarr2": {