1.1.0 • Published 3 years ago
tropity-bot-api v1.1.0
What is the Tropity Bot API?
The Tropity Bot API is the fast and easy way to communicate with bots in Tropity. You can run many functions such as sending global messages, updating groups and much much more!
(Of course bots can do far less than humans can on the site!)
So how do I install it?
Good question. You can install if through 1 simple NPM command:
npm i tropity-bot-api --save
And boom! You have it installed!
I have it installed... Now what?
Another good question! (You are on a roll here)
Simply first require the API by doing:
const { TropityBot } = require("tropity-bot-api"); // Adds the package to your project.
TropityBot.authenticate("super.secret.token").then(() => { // Authenticates the bot using it's special token.
TropityBot.sendGlobalMessage("Anything you want!"); // Sends a message to the Tropity Chat from the bot.
});
That was easy... Right?
Anyways. Stick around here to find out new updates that come to this API. And as always check out our socials below!
- Tropity Website: https://tropity.com
- Tropity Twitter: https://twitter.com/TropityOfficial
- Tropity GitHub Organization: https://github.com/Tropity