From fd3a5ea87fa13bfaab7e099bbe15b9623fd55e74 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 9 May 2022 19:15:03 -0500 Subject: change recv to next in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4beecba..7f3e2f0d 100755 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ let bot = Bot::offline("bot"); bot.join("localhost".try_into().unwrap()).await.unwrap(); loop { - match bot.recv().await { + match bot.next().await { Event::Message(m) { if m.username == bot.username { return }; if m.message = "go" { -- cgit v1.2.3