Class GenerateRandomMessages

GenerateRandomMessages - Service to generate random chat messages from participants.

This service generates random direct and group messages based on participants and a given host setup, with options to tailor messages for chat broadcast.

GenerateRandomMessages

const generateRandomMessagesService = new GenerateRandomMessages();
const messages = generateRandomMessagesService.generateRandomMessages({
participants: [
{ name: 'Alice' },
{ name: 'Bob' },
{ name: 'Charlie' }
],
member: 'Alice',
coHost: 'Bob',
host: 'Charlie',
forChatBroadcast: true
});
console.log(messages);

Options for generating random messages.

List of participants for message generation.

The primary member in the chat.

Optional co-host participant.

The chat host.

Flag to indicate if messages are for chat broadcast.

Array of randomly generated messages with direct and group messaging.

Constructors

Methods