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