1.0.12 • Published 2 years ago

botsshelter v1.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

BotsShelter

This package will get bots info from the BotsShelter API and parse it for you. To initialize it, do the following:

const Client = require('botsshelter').default;

const client = new Client('YOUR BOTSSHELTER TOKEN');

Methods

Get

client.get('SOME DISCORD BOT ID')
    .then((data) => console.log(data))
    .catch((error) => console.error(error));

You can obviously use the async/await syntax. The function will return the bot data or undefined if no bot was found with the provided ID.

Returned Data

{
  id: 'Discord ID',
  owner: 'Discord ID',
  collaborators: ['ID 1', 'ID 2', 'etc'],
  description: 'A description',
  invitelink: 'A link',
  supportserver: 'A Discord invite',
  website: 'A link',
  library: 'The Discord library',
  votes: 2, // or other number,
  addedat: 1234 // date in ms
}

Vote

client.vote('SOME DISCORD BOT ID')
    .then((data) => console.log(data))
    .catch((error) => console.error(error));

Returned Data

true if successfully voted. false if the bot was not found, or you were rate limited. You can only vote every 12 hours.

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago