trovo.js is a powerful Node.js module that allows you to easily interact with the Trovo API.
const Trovo = require('trovo.js');
const client = new Trovo.Client();
client.on("chatMessage", (msg) => {
if (msg.content === 'ping') {
client.sendMessage('pong');
}
})
client.login('trovo_user_url', 'email', 'password');
// OR to login Anonymously without Mod functionality
client.login('trovo_user_url');
Before creating an issue, please ensure that it hasn't already been reported/suggested.
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Trovo.js Server.
- chatEvent ~ Event for a Group of Events
-
- Sub Events
-
-
- userJoined ~ When a user has joined a Channel
-
-
-
- userFollowed ~ When a user has Followed the Channel
-
-
-
- userSubbed ~ When a user has Subbed to the Channel
-
-
-
- giftRecieved ~ When a user has sent a Gift to the Channel
-
- chatMessage ~ General Chat Message from a User
- dialog ~ Dialog popup output from the Browser [To be Removed when we move away from puppeteer]
- console ~ Console output from the Browser [To be Removed when we move away from puppeteer]
- wsClosed ~ Triggered when a Websocket is Closed.
- wsCreated ~ Triggered when a Websocket is Created
- jsonData ~ JsonData received.
- newPage ~ Opens a new Page on the headless browsers.
- login ~ Logins with a user, to a specific page.
- sendMessage ~ Sends Message to the Channel
- dialogResponse ~ used for when a dialog is triggered to send a emit [Internal]
- consoleResponse ~ used for when a console output is triggered to send a emit [Internal]