From 03e37f56014024e4a3a23e166f2f843dee59eaeb Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 23 Sep 2019 04:47:07 +0000 Subject: [PATCH] Update README to use event.respond --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ffb7cf5..eae0e09 100644 --- a/README.md +++ b/README.md @@ -19,19 +19,19 @@ from bwb.molly import bwb Boot up: ```text -client.send_message(BOT_WITH_BOT, '000000init ' + bwb.init()) +client.send_message(CHAT_ID, '000000init ' + bwb.init()) ``` On `000000init [data]`: ```text -client.send_message(BOT_WITH_BOT, '000000handshake ' + bwb.handshake(data)) +event.respond('000000handshake ' + bwb.handshake(data)) ``` On `000000handshake [data]`: ```text -client.send_message(BOT_WITH_BOT, bwb.wrap('secret ' + bwb.secret(data))) +event.respond(bwb.wrap('secret ' + bwb.secret(data))) bwb.set_otp(bwb.init_secret) ``` @@ -39,13 +39,13 @@ On _OTP authed_ `123456secret [data]`: ```text bwb.set_secret(data) -client.send_message(BOT_WITH_BOT, bwb.wrap('🤝')) +event.respond(bwb.wrap('🤝')) ``` On _OTP authed_ `123456🤝`: ```text -client.send_message(BOT_WITH_BOT, '🤝') +event.respond('🤝') ``` ### Interaction