Skip to content
 
 

Repository files navigation


trovo.js Bot


Discord server Patreon

Read this in: Español.

Table of contents

About

TrovoBot is a powerful Node.js Chatbot utilizing Trovo.js this allows you to create powerful interactive bots quickly and easily with TrovoBot for the Trovo Platform.

Chatbot Usage

This is a Trovo.js bot, showcasing all the various plugins. Please follow the directions listed below in order to use this example to showcase a working functioning chatbot. :)

Open the .env and edit the values listed within.

  • TROVO_EMAIL: Is the Email of the Account you will be logging into.
  • TROVO_PASSWORD: Is the Password of the Account you will be loggin into.
  • TROVO_PAGE: Will be the Page the Bot will be operating in.
  • TROVO_BOTNAME: Bioblaze
  • TROVO_PREFIX: This is the Prefix your bot will respond too i.e. !pong so '!' is the prefix
  • OBS_ACTIVE=0 // Optional to Enable OBS Websocket Support Turn OBS_ACTIVE=0 to OBS_ACTIVE=1
  • HTTP_OVERLAY=0 // Optional to Enable Browser Overlay Support Turn HTTP_OVERLAY=0 to HTTP_OVERLAY=1
  • HTTP_PORT=9999
  • FILTERSYSTEM=0
  • CAPS_RATE_BAN_THRESHOLD=0.4
  • BADWORDS_LANG=en

Setup

Video: How to Setup TrovoBot

Fill in the Values inside of the .env file then continue. Open Commandline Console, and type the steps listed below. Type: npm install ~ Once installation has completed continue. To start the Bot type: node ./index.js Alternately in the "bat" folder, after you setup the.env file, run install-deps.bat then run startup-bot.bat

Plugin Development

All develops are welcome to make Pull Requests with Plugin's you've created!

Chat Command Plugin Example

  • These plugins go into the /plugins/ Folder.
module.exports = {
	name: 'name',
	description: 'Description',
	execute(message, args, user, bot) {
		bot.sendMessage(`Send a Message Here <3`);
	},
};

Event Plugin Example

  • These plugins go into the /events/ Folder. Named like Name.EventType.js
  • Valid event Types: json or text
  • Example of JSON event name: viewercount.json.js
  • Example of Text event name: welcomer.text.js
module.exports = {
	event: 'event here',
	description: 'Description',
	execute(user, message, bot) {
		bot.sendMessage(`Send a Message Here <3`);
	},
};

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested.

Help

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.

OBS Plugin

HTTP Overlay Plugin

Create a Data JSON file in /modules/http/data/<filehere.json> Event plugins showcasing stuff are located in /events/http-overlay-text-*.js

URL http://localhost:/text/ <-- filehere is the name of the json file you created, without .json

About

Chat Bot utilizing Trovo.js as it's base.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages