Statuses

Adding a Status

bot.addStatus({
  name: "Some status details",
  presence: "presence", //online, idle, dnd, invisible
  type: "STATUS_TYPE", //PLAYING, WATCHING, COMPETING, or LISTENING
  duration: 12000 //Value in milliseconds. The interval between statuses (if multiple). Do not put anything below 12000 else your bot may be ratelimited.
})

All statuses must have a name property.

Streaming Statuses

bot.addStatus({
  name: "Some status details",
  type: "STREAMING", //Type set to STREAMING
  url: "https://twitch.tv/some_twitch_stream" //Stream URL
})

Example Status

bot.addStatus({
  name: "Hello World!",
  presence: "idle",
  type: "PLAYING"
})

Last updated