# motionbotlist

> **MotionBotList | NPM**

Latest version **2.0.0** (published 2021-09-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install motionbotlist
pnpm add motionbotlist
yarn add motionbotlist
bun add motionbotlist
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-09-08 |
| First published | 2021-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | sprocx |

## Links

- npm: https://www.npmjs.com/package/motionbotlist
- npm.io page: https://npm.io/package/motionbotlist

## Dependencies (3)

- [npm-api](https://npm.io/package/npm-api.md) ^1.0.1
- [request](https://npm.io/package/request.md) ^2.88.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 2.0.0 (latest) — 2021-09-08
- 1.1.4 — 2021-03-29
- 1.1.3 — 2021-03-24
- 1.1.2 — 2021-03-21
- 1.1.1 — 2021-02-26
- 1.1.0 — 2021-02-26
- 1.0.9 — 2021-02-26
- 1.0.8 — 2021-02-26
- 1.0.7 — 2021-02-26
- 1.0.6 — 2021-02-26
- 1.0.5 — 2021-02-26
- 1.0.4 — 2021-02-26
- 1.0.3 — 2021-02-26
- 1.0.2 — 2021-02-26
- 1.0.1 — 2021-02-26
- … 1 more at https://npm.io/package/motionbotlist/versions

## README

**MotionBotList | NPM**

Welcome to the official documentation. v2 is now here, so please re-read this!

## How to grab... ##

**API Key**

So, to do this just go to this link: https://www.motiondevelopment.top/bots/botid/token

**Bot ID**

To do this, just go to your bot's website page and look in the URL. I will use Reaction Roles as an example:

https://www.motiondevelopment.top/bots/708096305477451846

At the end of the URL there is the ID!

**API Docs**

[Click Here!](https://www.motiondevelopment.top/docs/api/intro)
This is where you can find all JSON Responses.

## Votes ##

So you wanna grab the votes. Well look no further! Read the example script below to know how to do it:

```js
const motion = require("motionbotlist")

// Make sure this is in an asynchronous function!

let grabbed = await motion.votes("bot ID", "API Token")
// Now "grabbed" is your response JSON.
```
Response JSON Example:

```json
[
  { id: null, user: false, 'vote-time': 'yyyy-mm-dd hh:mm:ss' },
  {
    id: '000000000000000000',
    user: true,
    user_name: 'user#0000',
    'vote-time': 'yyyy-mm-dd hh:mm:ss'
  }
]
```
I have no idea why it responds with the `{ id: null, user: false, 'vote-time': 'yyyy-mm-dd hh:mm:ss' }`, I guess it's a bug ?!?

## grabInfo ##

So, with this you can get basically everything that is on the main page of the site, but in JSON.

Example:

```js
const motion = require("motionbotlist")

// Make sure this is in an asynchronous function!

let grabbed = await motion.grabInfo("bot ID", "API Token")
// Now "grabbed" is your response JSON.
```
Response JSON Example:

```json
{
  Big_desc: '...',
  Small_desc: '...',
  annoucements: {},
  avatar: '...',
  bot_id: '...',
  bot_name: 'Bot#0000',
  bot_status: 'online',
  co_owners: [
    {
      discriminator: '0000',
      id: '000000000000000000',
      public_flags: 11111,
      username: 'CoolDude'
    }
  ],
  discord: '...',
  id: '...',
  invite: '...',
  lib: '...',
  list_date: 'yyyy-mm-dd',
  owner_id: '...',
  owner_name: '᲼Owner#0000',
  prefix: '...',
  public_flags: '11111',
  servers: '111',
  site: '',
  status: 'approved',
  tops: [ 'User management', 'Server management', '...' ],
  username: 'Bot#0000',
  vanity_url: '...'
}
```

## Servers ##

It's time to update the server count! It's quite easy, just follow the demo:

```js
const motion = require("motionbotlist")

// Make sure this is in an asynchronous function!

let grabbed = await motion.servers("bot ID", "API Token", 0)
//                                                        ^
//                                                        MUST BE AN INTEGER!!!!
// Now "grabbed" is your response JSON.
```

```json
{
  description: 'Your bots server status has been updated!',
  message: '200 Success',
  success: true
}
```

## Thanks. ##

Thanks all for the amazing support with this NPM Package. Hope you enjoy this new update for you all!

---
_Source: https://npm.io/package/motionbotlist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
