botsbase.js
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "botsbase.js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "BotsBase.net API", | ||
"main": "roxza.js", | ||
"main": "x.js", | ||
"scripts": { | ||
"test": "node roxza" | ||
"test": "node x" | ||
}, | ||
@@ -20,4 +20,4 @@ "keywords": [ | ||
], | ||
"author": "Roxza#6666", | ||
"author": "Roxza#6666,Aronshire#8111", | ||
"license": "MIT" | ||
} |
@@ -13,6 +13,15 @@ # Bots Base API | ||
const BaseAPI = require('botsbase.js') | ||
const BotsBase = new BaseAPI(); | ||
const BotsBase = new BaseAPI("TOKEN") | ||
``` | ||
// Events | ||
BotsBase.on('error', console.error) | ||
#### Post Guild & User count | ||
```js | ||
const BaseAPI = require('botsbase.js') | ||
const BotsBase = new BaseAPI("TOKEN"); | ||
client.on('ready', () => { | ||
BotsBase.postStats(client.guilds.size, client.users.size) | ||
}); | ||
``` | ||
@@ -24,7 +33,4 @@ | ||
const BaseAPI = require('botsbase.js') | ||
const BotsBase = new BaseAPI(); | ||
const BotsBase = new BaseAPI("TOKEN"); | ||
// Events | ||
BotsBase.on('error', console.error) | ||
client.on('ready', async() => { | ||
@@ -44,7 +50,4 @@ const check = await BotsBase.voted("USER_ID", "BOT_ID") | ||
const BaseAPI = require('botsbase.js') | ||
const BotsBase = new BaseAPI(); | ||
const BotsBase = new BaseAPI("TOKEN"); | ||
// Events | ||
BotsBase.on('error', console.error) | ||
const data = await BotsBase.fetchBot("BOT_ID") | ||
@@ -61,7 +64,4 @@ console.log(data) // { isim: "...", prefix: "..." } | ||
const BaseAPI = require('botsbase.js') | ||
const BotsBase = new BaseAPI(); | ||
const BotsBase = new BaseAPI("TOKEN"); | ||
// Events | ||
BotsBase.on('error', console.error) | ||
const lastvote = await BotsBase.lastVote("BOT_ID") | ||
@@ -73,2 +73,2 @@ console.log(lastvote) | ||
#### Roxza <3 | ||
#### Roxza & Aronshire <3 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4840
71