-
-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Labels
Description
Actual behaviour:
Catch a string on the twitch chat, error on the function "client.say()"
Expected behaviour:
Catch a string on the twitch chat, write an auto response
**Code : **
var tmi = require('tmi.js')
var oauth = require('./password.js')
var options = {
options: {
debug: true
},
connection: {
reconnect: true
},
identitiy: {
username: "boturanne",
password: oauth.password
},
channels : ['#uranne']
}
var client = new tmi.client(options);
client.connect();
client.join("#uranne")
client.on("chat", (channel, user, message, self) => {
if(self) return
if(channel == "#uranne") {
if(message == "ping"){
client.say("#uranne", "pong")
}
}
})
Error log:
http://puu.sh/vZa0K/f463d3a533.png
Server configuration
- Operating system: windows 10 family 64bit
- Node version (if applicable): 6.10.3
- NPM version (if applicable): 3.10.10
- tmi.js version: