1.0.5 • Published 11 months ago

revoltbots.js v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Note : versions earlier than v1.0.2 only work for revolt.js@v6

Example:

const Revolt = require("revolt.js");
const client = new Revolt.Client();
const RevoltBots = require('revoltbots.js');
const api = new RevoltBots.Client("Your-RBL-API-Key-Here");

// Posting manually...
client.on("ready", ()=>{
	api.postStats(client).then(result => {
    		console.log(result)
	});

})

// Hourly AutoPost...
client.on("ready", ()=>{
	api.autopostStats(client).then(result => {
    		console.log(result)
	});
});

client.on("message", ()=>{
// ..
	api.hasVoted(client, "REVOLTUSERID").then(result => {
    		console.log(result)
	});

// ...
	api.getStats(client).then(result => {
    		console.log(result)
	});
// ...

	api.getVoted(client).then(result => {
    		console.log(result)
	});
// ..
})

client.loginBot("revolt.BOT-TOKEN_HERE")

WIP

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago