> For the complete documentation index, see [llms.txt](https://bmsvieira.gitbook.io/nova-irc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bmsvieira.gitbook.io/nova-irc/event-listeners/message.md).

# message

The `message` event is triggered whenever the server sends a message, whether it is a private message or a channel message.

```javascript
bot.on('message', (data) => {
     // Your code here
});
```

#### Parameters

* **data.sender** *(string)* – The sender of the message.
* **data.target** *(string)* – The recipient of the message (channel or user).
* **data.content** *(string)* – The content of the message.
* **data.raw** *(string)* – The raw message data from the server.
