Update README to use event.respond

This commit is contained in:
Tanner Collin 2019-09-23 04:47:07 +00:00
parent b3f8b30dab
commit 03e37f5601

View File

@ -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