Even more simple echobot

This commit is contained in:
Sarah Jamie Lewis 2023-04-25 15:35:20 -07:00
parent ed98f059f1
commit 223842a32b
1 changed files with 0 additions and 1 deletions

View File

@ -49,7 +49,6 @@ func main() {
cid, _ := cwtchbot.Peer.FetchConversationInfo(message.Data[event.RemotePeer])
switch message.EventType {
case event.NewMessageFromPeer:
cwtchbot.Queue.Publish(event.NewEvent(event.PeerAcknowledgement, map[event.Field]string{event.EventID: message.EventID, event.RemotePeer: message.Data[event.RemotePeer]}))
msg := cwtchbot.UnpackMessage(message.Data[event.Data])
fmt.Printf("Message: %v\n", msg)
reply := string(cwtchbot.PackMessage(msg.Overlay, msg.Data))