- Auth with your regular account
- 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));
- 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" }
- Save that api key somewhere safe (I will be adding a UI for this but it doesn't exist atm)
- 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.