Nightbot
App · 20 actions
Read Nightbot chat settings and manage custom commands, timers and regulars.
Actions
| Action | What it does |
|---|---|
| Create custom command | Create custom command. |
| Delete custom command | Delete custom command. |
| Get channel regular | Get channel regular. |
| Get channel subscriber | Get channel subscriber. |
| Get chat timer | Get chat timer. |
| Get custom command | Get custom command. |
| Get default Nightbot command | Get default Nightbot command. |
| Get song request settings | Get song request settings. |
| Get spam protection filter | Get spam protection filter. |
| Get your Nightbot channel | Get your Nightbot channel. |
| Get your Nightbot profile | Get your Nightbot profile. |
| List channel regulars | List channel regulars. |
| List channel subscribers | List channel subscribers. |
| List chat timers | List chat timers. |
| List custom commands | List custom commands. |
| List default Nightbot commands | List default Nightbot commands. |
| List Nightbot playlist songs | List Nightbot playlist songs. |
| List queued song requests | List queued song requests. |
| List spam protection filters | List spam protection filters. |
| Update custom command | Update custom command. |
Create custom command
Create custom command.
Inputs
- Name
nametextRequired - Name people type in chat, such as !schedule.
- Message
messagetextRequired - Message that Nightbot sends to chat.
- Cooldown
cooldownnumberRequired - Seconds between uses of the command.From 5 to 300.
- User level
user_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
- Command
command_idtextRequired - Custom command in your channel.
Outputs
dataobject- The response from Nightbot.
Example output
{
"data": {
"status": 1
}
}Get channel regular
Get channel regular.
Inputs
- Regular
regular_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
- Subscriber
subscriber_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
- Timer
timer_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
- Command
command_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 name
command_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 type
filter_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
- Limit
limitnumber - Maximum number of people to return.From 1 to 100.
- Offset
offsetnumber - Number of people to skip.At least 0.
- Search
searchtext - 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
- Limit
limitnumber - Maximum number of people to return.From 1 to 100.
- Offset
offsetnumber - Number of people to skip.At least 0.
- Search
searchtext - 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
- Command
command_idtextRequired - Custom command in your channel.
- Name
nametext - Name people type in chat, such as !schedule.
- Message
messagetext - Message that Nightbot sends to chat.
- Cooldown
cooldownnumber - Seconds between uses of the command.From 5 to 300.
- User level
user_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
}
}