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.
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
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
All develops are welcome to make Pull Requests with Plugin's you've created!
- 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`);
},
};
- These plugins go into the
/events/
Folder. Named likeName.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`);
},
};
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.
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