Null Pointer Micromanagement
    Wondering what’s next for npm?Check out our public roadmap! »

    botsshelter
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    BotsShelter

    This package will get bots info from the BotsShelter API and parse it for you. It has a single function, that is:

    const { get } = require('botsshelter');
    
    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
    }

    Install

    npm i botsshelter

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    2.87 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar