Browse Source

added logging to payments

master
David Haukeness 5 years ago
parent
commit
04b79c7ad7
  1. 1
      commands.go

1
commands.go

@ -18,6 +18,7 @@ func (b *bot) handlePayment(m chat1.MsgSummary) {
if payment.Result.ResultTyp__ == 0 && payment.Result.Error__ == nil { if payment.Result.ResultTyp__ == 0 && payment.Result.Error__ == nil {
var replyInfo = botReply{convID: m.ConvID, msgID: m.Id} var replyInfo = botReply{convID: m.ConvID, msgID: m.Id}
b.payments[*payment.Result.Sent__] = replyInfo b.payments[*payment.Result.Sent__] = replyInfo
b.log("payment recieved %s", payment.PaymentText)
} else { } else {
// if the payment fails, be sad // if the payment fails, be sad
b.k.ReactByConvID(m.ConvID, m.Id, ":cry:") b.k.ReactByConvID(m.ConvID, m.Id, ":cry:")

Loading…
Cancel
Save