mirror of
https://github.com/logos-messaging/logos-chat.git
synced 2026-03-04 06: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.} =
|
proc main() {.async.} =
|
||||||
let waku = initWakuClient(DefaultConfig())
|
let waku = initWakuClient(DefaultConfig())
|
||||||
let ident = createIdentity("EchoBot")
|
var chatClient = newClient(waku).get()
|
||||||
var chatClient = newClient(waku, ident)
|
|
||||||
|
|
||||||
chatClient.onNewMessage(proc(convo: Conversation, msg: ReceivedMessage) {.async.} =
|
chatClient.onNewMessage(proc(convo: Conversation, msg: ReceivedMessage) {.async.} =
|
||||||
info "New Message: ", convoId = convo.id(), msg= msg
|
info "New Message: ", convoId = convo.id(), msg= msg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user