Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
retconned authored Feb 1, 2025
1 parent 3d46ec4 commit e1d5d61
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,24 @@ const client = createClient("xqc", { logger: true, readOnly: true });
// readOnly: true will make the client only read messages from the chat, and disable all other authenticated actions.

client.login({
username: "xqc",
password: "bigschnozer420",
otp_secret: "your-2fa-secret",
type: "login",
credentials: {
username: "xqc",
password: "bigschnozer420",
otp_secret: "your-2fa-secret",
},
});
// to get your OTP secret, you need to go to https://kick.com/settings/security and enable Two-Factor Authentication and copy the secret from there

// you can also authenticate using tokens obtained from the kick website directly by switching the type to 'tokens'
client.login({
type: "tokens",
credentials: {
bearerToken: process.env.BEARER_TOKEN,
cookies: process.env.COOKIES,
},
});

client.on("ready", () => {
console.log(`Bot ready & logged into ${client.user?.tag}!`);
});
Expand Down

0 comments on commit e1d5d61

Please sign in to comment.