1.1.0 • Published 3 years ago

tropity-bot-api v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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!

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago