Closed DerTyp7214 closed 2 years ago
This commit on the feature-send-tags
branch (WIP) adds the ability to send tags as part of say/action. A separate method could be added to make replying easier. If you do want to try it before I merge and put out a release candidate:
npm i tmijs/tmi.js#feature-send-tags
client.on('message', (channel, tags, message, self) => {
if(self) return;
if(message.toLowerCase().startsWith('hello')) {
client.say(channel, 'Hello', { 'reply-parent-msg-id': tags.id });
}
});
This commit on the
feature-send-tags
branch (WIP) adds the ability to send tags as part of say/action. A separate method could be added to make replying easier.
hey @AlcaDesign any updates if it is going to be a PR or synced to have new commits (e.g: announcements)?
any update on this ?
Maybe add the option in
client.say
to answer to another message.Example:
client.say(channel, message, messageId)
the irc call would look like this in raw:
this.client.raw('@reply-parent-msg-id=<message-id> PRIVMSG <channel> :<message>')