Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixes hierarchy in example code
  • Loading branch information
retconned authored Dec 8, 2024
1 parent edb955e commit 6e2140b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ import "dotenv/config";
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.on("ready", () => {
console.log(`Bot ready & logged into ${client.user?.tag}!`);
});

client.login({
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

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

client.on("ChatMessage", async (message) => {
console.log(`${message.sender.username}: ${message.content}`);
});
Expand Down

0 comments on commit 6e2140b

Please sign in to comment.