muratulashozturk / TrovoBot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


trovo.js Bot


Discord server Patreon

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

How to Run

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

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.


Languages

Language:JavaScript 74.6%Language:HTML 25.2%Language:Batchfile 0.2%