Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 857 Bytes

CREATE_BOT_ACCOUNT.MD

File metadata and controls

15 lines (13 loc) · 857 Bytes
  1. Auth with your regular account
  2. Send ws message to create bot account with the username you want (you can create up to 5):
{ op: "user:create_bot", p: { username: "mybotname" }, ref: "[uuid]", v: "0.2.0" }

// or with Kebab

wrapper.mutation.userCreateBot("username").then((response) => console.log(response));
  1. You will receive back a message with an api key or error:
{ op: "user:create_bot:reply", p: { apiKey: "asdoifjo1jioj1f1f2" }, ref: "[uuid]", v: "0.2.0" }
  1. Save that api key somewhere safe (I will be adding a UI for this but it doesn't exist atm)
  2. Send a POST request to https://api.dogehouse.tv/bot/auth with a JSON body { apiKey: "asdoifjoqefjo" } (make sure to set the header: content-type to application/json) and it will return an accessToken and refreshToken for that bot account.