mirror of
https://github.com/logos-messaging/logos-chat.git
synced 2026-02-27 20:33:07 +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