mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-04-03 02:13:33 +00:00
Update Echo_bot
This commit is contained in:
parent
e5e88ec58e
commit
8353bcd152
@ -8,8 +8,7 @@ import content_types
|
||||
|
||||
proc main() {.async.} =
|
||||
let waku = initWakuClient(DefaultConfig())
|
||||
let ident = createIdentity("EchoBot")
|
||||
var chatClient = newClient(waku, ident)
|
||||
var chatClient = newClient(waku).get()
|
||||
|
||||
chatClient.onNewMessage(proc(convo: Conversation, msg: ReceivedMessage) {.async.} =
|
||||
info "New Message: ", convoId = convo.id(), msg= msg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user