My chatbot dosent work and i dont now why

my code `var tmi = require(“tmi.js”),
http = require(‘http’);

var commands = new Map();
commands.set(‘!hello’, ‘Hello World!’);

var options = {
options: {
debug: true
},
connection: {
reconnect: true
},
identity: {
username: “KazukaBot”,
password: “oauth: …”
},
channels: [“Kazuka_00”]
}

var client = new tmi.client(options);
client.connect();

client.on(“chat”, function (channel, userstate, message, self) {
if (message.charAt(0) == ‘!’) {
var command = commands.get(message);
if (command) {
client.say(channel, command);
}
}
});

client.on(“hosted”, function (channel, username, viewers) {
client.say(username + " is now hosting for " + viewers + " viewers. Thanks!");
});

var server = http.createServer();
server.listen(443);`

and my error " [13:04] info: Sending authentication to server…
[13:04] error: Could not connect to server. Reconnecting in 2 seconds…
[13:04] info: Connecting to irc-ws.chat.twitch.tv on port 443…
[13:04] info: Sending authentication to server…
[13:04] error: Could not connect to server. Reconnecting in 3 seconds…"

Pls help me :pray:

thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.