Skip to content

The bot join the irc correctly but can't write #229

@Uranne

Description

@Uranne

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions