but now im looking to add the default twitch / commands in to my bot
so for example the new /announce command
is there anyway i can make my bot fire this instead of me or a mod
or is this not possible
because it will be nice to run this command on a timer for example we plan a event and the bot can announce this during the stream by executing the /announce command
The user account you intend to run your bot as, would need to be a moderator in your channel, as only moderators and broadcasters can send announcements.
Then just start your message in the PRIVMSG with an .announce or /announce (I prefer the dot version). This works the same as if a moderator or caster would send an announcement when using native twitch chat.
Chat or bot you both write .announce the message you wish to announce
PRIVMSG #channelname :/me .announce New giveaway is starting next week
Since you used client.action (guessing TMI.js here). I guess you want the other ânormalâ chat message helper function that TMI.js has (client.say ?)