Grabbing a single message from chat

Not sure if you’re asking if something exists or how one would go about doing it but to steer you in the right direction, the simplest/fastest way possible would be to use NodeJS, and the tmi.js Library.

After you setup the library and listen to the channel you want to it’s as simple as:

let messArray = [];

client.on("chat", function (channel, userstate, message, self) {
  // Don't listen to my own messages..
  if (self) return;
  messArray.push({user: userstate.username, mess: message});
});

var _resetInterval = setInterval(() => {
  setMessage();
}, 60000);

function setMessage() {
  let ranNum = Math.floor(Math.random() * messArray.length);
  let selUser = messArray[ranNum].user; // Save selected user in var
  let selMess = messArray[ranNum].mess; // Save selected mess in var
  this.messArray = []; // Clear array
  console.log(selUser + " " + selMess);
  // Now do whatever you want with the message and user of message stored in vars
}

Again not entirely sure what you were looking for but cheers!