Browse Source

Remove unnecessary logging

master
Gregory Rudolph 3 years ago
parent
commit
edf8556b70
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 4
      commands.go

4
commands.go

@ -27,12 +27,10 @@ func reset(m chat1.MsgSummary) { @@ -27,12 +27,10 @@ func reset(m chat1.MsgSummary) {
func authenticate(m chat1.MsgSummary) {
defer log.PanicSafe()
log.LogDebug("Called authenticate()")
if isAuthenticated(m) {
k.SendMessageByConvID(m.ConvID, "You have already authenticated (please use !reset to reset.")
return
}
log.LogDebug("User was not already authenticated")
if !m.IsEphemeral {
k.SendMessageByConvID(m.ConvID, "Please remember to delete your message after we have authenticated!")
}
@ -41,7 +39,6 @@ func authenticate(m chat1.MsgSummary) { @@ -41,7 +39,6 @@ func authenticate(m chat1.MsgSummary) {
k.SendMessageByConvID(m.ConvID, "Invalid input for command authenticate. Requires username and password. This information is not stored in keybase, or logged. %+v", len(parts))
return
}
log.LogDebug("Proper amount of parameters has been received, calling login()")
var username, password, tok string
if len(parts) == 3 {
username = parts[1]
@ -54,7 +51,6 @@ func authenticate(m chat1.MsgSummary) { @@ -54,7 +51,6 @@ func authenticate(m chat1.MsgSummary) {
handleError(err, m, "There was an error logging in. Contact @rudi9719 for more information with code %+v")
return
}
log.LogDebug("Returned from login()")
log.LogDebug("Token created for %+v", m.Sender.Username)
_, err = k.KVPut(&m.Channel.Name, "teslabot", "authtok", t)
if err != nil {

Loading…
Cancel
Save