tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 217 forks source link

Reply to message #419

Closed DerTyp7214 closed 2 years ago

DerTyp7214 commented 3 years ago

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>')

AlcaDesign commented 3 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 });
  }
});
maiconcarraro commented 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.

hey @AlcaDesign any updates if it is going to be a PR or synced to have new commits (e.g: announcements)?

snwfdhmp commented 2 years ago

any update on this ?