Skip to content

Latest commit

 

History

History
 
 

bot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Bot

The bot connects to a specified websocket endpoint and echoes messages produces by user ECHO_USER which is an env var passed to the bot command.

To build and run the application, execute the following commands:

N_CLIENTS=1 ENDPOINT=ws:https://localhost:3030 ROOM=redrum ECHO_USER=test cargo run

Before running the application, make sure to set the environment variables N_CLIENTS, ENDPOINT, ROOM, and ECHO_USER.

It's also supporting .env file eg:

N_CLIENTS=1
ENDPOINT=ws:https://localhost:3030
ROOM=redrum
ECHO_USER=test