Respond to the person who used the command (Js)

I have revoked your leaked access token

NEVER post your oAuth token publically.

For TMI.js please refer to the TMI.js documentation

https://tmijs.com/

Which provides the following example


client.on('message', (channel, tags, message, self) => {
	// "Alca: Hello, World!"
	console.log(`${tags['display-name']}: ${message}`);
});

Use either

tags.username
or
tags['display-name']}

as needed

1 Like