Nightbot

App · 20 actions

Read Nightbot chat settings and manage custom commands, timers and regulars.

Actions

ActionWhat it does
Create custom commandCreate custom command.
Delete custom commandDelete custom command.
Get channel regularGet channel regular.
Get channel subscriberGet channel subscriber.
Get chat timerGet chat timer.
Get custom commandGet custom command.
Get default Nightbot commandGet default Nightbot command.
Get song request settingsGet song request settings.
Get spam protection filterGet spam protection filter.
Get your Nightbot channelGet your Nightbot channel.
Get your Nightbot profileGet your Nightbot profile.
List channel regularsList channel regulars.
List channel subscribersList channel subscribers.
List chat timersList chat timers.
List custom commandsList custom commands.
List default Nightbot commandsList default Nightbot commands.
List Nightbot playlist songsList Nightbot playlist songs.
List queued song requestsList queued song requests.
List spam protection filtersList spam protection filters.
Update custom commandUpdate custom command.

Create custom command

Create custom command.

Inputs

NamenametextRequired
Name people type in chat, such as !schedule.
MessagemessagetextRequired
Message that Nightbot sends to chat.
CooldowncooldownnumberRequired
Seconds between uses of the command.From 5 to 300.
User leveluser_leveltextRequired
Minimum role that can use the command.One of: everyone, subscriber, regular, twitch_vip (Twitch vip), soop_vip (Soop vip), moderator, owner, admin.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "command": {
      "_id": "example",
      "coolDown": 1,
      "count": 1,
      "message": "example",
      "name": "example",
      "updatedAt": "example",
      "userLevel": "example"
    },
    "status": 1
  }
}

Delete custom command

Delete custom command.

Inputs

Commandcommand_idtextRequired
Custom command in your channel.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "status": 1
  }
}

Get channel regular

Get channel regular.

Inputs

Regularregular_idtextRequired
Channel regular from your channel.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "regular": {
      "_id": "example",
      "createdAt": "example",
      "displayName": "example",
      "name": "example",
      "provider": "example",
      "providerId": "example"
    },
    "status": 1
  }
}

Get channel subscriber

Get channel subscriber.

Inputs

Subscribersubscriber_idtextRequired
Channel subscriber from your channel.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "status": 1,
    "subscriber": {
      "_id": "example",
      "createdAt": "example",
      "displayName": "example",
      "name": "example",
      "provider": "example",
      "providerId": "example"
    }
  }
}

Get chat timer

Get chat timer.

Inputs

Timertimer_idtextRequired
Chat timer from your channel.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "status": 1,
    "timer": {
      "_id": "example",
      "enabled": true,
      "interval": "example",
      "lines": 1,
      "message": "example",
      "name": "example",
      "nextRunAt": "example",
      "updatedAt": "example"
    }
  }
}

Get custom command

Get custom command.

Inputs

Commandcommand_idtextRequired
Custom command from your channel.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "command": {
      "_id": "example",
      "coolDown": 1,
      "count": 1,
      "message": "example",
      "name": "example",
      "updatedAt": "example",
      "userLevel": "example"
    },
    "status": 1
  }
}

Get default Nightbot command

Get default Nightbot command.

Inputs

Command namecommand_nametextRequired
Name of a built-in Nightbot command.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "command": {
      "enabled": true,
      "name": "example"
    },
    "status": 1
  }
}

Get song request settings

Get song request settings.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "settings": {},
    "status": 1
  }
}

Get spam protection filter

Get spam protection filter.

Inputs

Filter typefilter_typetextRequired
Nightbot spam filter to look up.One of: blacklist, caps, emotes, links, repetitions, symbols.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "filter": {},
    "status": 1
  }
}

Get your Nightbot channel

Get your Nightbot channel.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "channel": {
      "_id": "example",
      "displayName": "example",
      "joined": true,
      "name": "example",
      "plan": "example"
    },
    "status": 1
  }
}

Get your Nightbot profile

Get your Nightbot profile.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "status": 1,
    "user": {
      "_id": "example",
      "createdAt": "example",
      "displayName": "example",
      "name": "example",
      "provider": "example",
      "providerId": "example"
    }
  }
}

List channel regulars

List channel regulars.

Inputs

Limitlimitnumber
Maximum number of people to return.From 1 to 100.
Offsetoffsetnumber
Number of people to skip.At least 0.
Searchsearchtext
Name to search for.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "regulars": [
      {
        "_id": "example",
        "createdAt": "example",
        "displayName": "example",
        "name": "example",
        "provider": "example",
        "providerId": "example"
      }
    ],
    "status": 1
  }
}

List channel subscribers

List channel subscribers.

Inputs

Limitlimitnumber
Maximum number of people to return.From 1 to 100.
Offsetoffsetnumber
Number of people to skip.At least 0.
Searchsearchtext
Name to search for.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "status": 1,
    "subscribers": [
      {
        "_id": "example",
        "createdAt": "example",
        "displayName": "example",
        "name": "example",
        "provider": "example",
        "providerId": "example"
      }
    ]
  }
}

List chat timers

List chat timers.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "status": 1,
    "timers": [
      {
        "_id": "example",
        "enabled": true,
        "interval": "example",
        "lines": 1,
        "message": "example",
        "name": "example",
        "nextRunAt": "example",
        "updatedAt": "example"
      }
    ]
  }
}

List custom commands

List custom commands.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "commands": [
      {
        "_id": "example",
        "coolDown": 1,
        "count": 1,
        "message": "example",
        "name": "example",
        "updatedAt": "example",
        "userLevel": "example"
      }
    ],
    "status": 1
  }
}

List default Nightbot commands

List default Nightbot commands.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "commands": [
      {
        "enabled": true,
        "name": "example"
      }
    ],
    "status": 1
  }
}

List Nightbot playlist songs

List Nightbot playlist songs.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "playlist": [
      {
        "_id": "example",
        "createdAt": "example",
        "title": "example"
      }
    ],
    "status": 1
  }
}

List queued song requests

List queued song requests.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "_total": 1,
    "queue": [
      {
        "_id": "example",
        "createdAt": "example",
        "title": "example"
      }
    ],
    "status": 1
  }
}

List spam protection filters

List spam protection filters.

Inputs

None.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "filters": [
      {}
    ],
    "status": 1
  }
}

Update custom command

Update custom command.

Inputs

Commandcommand_idtextRequired
Custom command in your channel.
Namenametext
Name people type in chat, such as !schedule.
Messagemessagetext
Message that Nightbot sends to chat.
Cooldowncooldownnumber
Seconds between uses of the command.From 5 to 300.
User leveluser_leveltext
Minimum role that can use the command.One of: everyone, subscriber, regular, twitch_vip (Twitch vip), soop_vip (Soop vip), moderator, owner, admin.

Outputs

dataobject
The response from Nightbot.
Example output
{
  "data": {
    "command": {
      "_id": "example",
      "coolDown": 1,
      "count": 1,
      "message": "example",
      "name": "example",
      "updatedAt": "example",
      "userLevel": "example"
    },
    "status": 1
  }
}

On this page