Sending out /announce messages #524
-
I've been trying to get my bot to For example, this would simply return nothing in chat, but if I take out the
I've tested with services like StreamElements, and they're able to send messages using announcements without a problem, so I'm unsure of what the holdup is here. Just to confirm, yes the account I'm using for the bot is a moderator in the channel. I have also tried using apostrophes and quotations, with just regular messages like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
This isn't an answer, just a workaround until official support can be had. Ran into this tonight as well, I ended up patching announce(channel, message) {
channel = _.channel(channel);
// Send the command to the server and race the Promise against a delay..
return this._sendCommand(this._getPromiseDelay(), channel, `/announce ${message}`, (resolve, reject) => {
// Received _announce event, resolve or reject..
this.once("_announce", err => {
if(!err) { resolve([channel, message]); }
else { reject(err); }
});
});
}, I have no idea why this ended up working when the default Aside from that, somehow, this now works: client.announce("supercoolstreamer", "please follow me i'm starving").catch(console.log); |
Beta Was this translation helpful? Give feedback.
-
Hey there. Was the announce command removed from the test version [email protected] ? |
Beta Was this translation helpful? Give feedback.
-
I can't get the announce to work either with 1.9.,0-pre.1 |
Beta Was this translation helpful? Give feedback.
Twitch removed
/
-commands in February of 2023. You need to use the Helix API to send the announcement now.