# README
Talking Bots is a just for fun example where we have 2 zulip bots sending messages to each other in a silly conversation.
This example is using the Users, Channels, Messages and Realtime Services.
Outline:
- Initiate client with User A credentials
- Initiate client with User B credentials
- Create necessary services for each one (users, channels, messages and realtime)
- Start a goroutine for each one where:
- They will subscribe to a fixed Channel (#talking_bots)
- They will register an Event Queue to only receive notifications on the subscribed channel.
- They will start sending messages to the channel mentioning or not the other user.
- They will react or not to the other user messages with another message, a reaction or sending a picture.
Running the example:
- Get 2 user credentials
- You can run
examples/create_users
to generate 2 random users or create 2 bots
- You can run
- Export the variables
export ZULIP_EMAIL_A="johndoe-bot@localhost" export ZULIP_API_KEY_A="xxxxxxxxxxxxxxx" export ZULIP_EMAIL_B="janedoe-bot@localhost" export ZULIP_API_KEY_B="yyyyyyyyyyyyyyy"
go run .
- Join the channel where the 2 users will talk at https://localhost