By Vager 24 Comments
You can set your Twitter account to send you a text (if your country/carrier supports it) each time the bot tweets so you can always know about an upcoming stream.
It took me longer than expected but, I've rebuilt the twitter bot to tweet all upcoming live streams from any of Whiskey Media's sites. I also fixed every issue that came up with the orginal bot.
How It Works
Every 10 minutes it will check each of Whiskey's APIs for any open chats. If there is one It will check to see if there is a countdown timer or not. It will tweet "[Name of the Site]: [Name of the Show] -- Starting Soon - [link to the chat]" right away if there is no timer -- If there is one it'll wait till it's under an hour before it tweets. After that, it will continue to check every 10 minutes to see if the justin.tv channel is live. Once it is it will tweet again saying that it's live.
What's been Fixed
- It will not tweet about a upcoming stream incredibly early. Like it did for the end of SWG. It will tweet when a show is under an hour from starting. (I can change this easily, if everyone wishes it to tweet earlier than that.)
- It will not tweet again if the title of the stream changes a bit.
- It will not tweet twice if a show is still running past midnight (PST).
- (New) Added Whiskey's chat API as a backup in case the countdown timer doesn't show up.
What needs to been Fixed
Feb 6, 2012 - Tweeting multiple times during a Whiskey Media site wide live show. (ie. Happy Hour)
Issues came up with the latest Whiskey Media Happy Hour, which was the first time it tried to do a Whiskey Media Live Show from all the sites. It basically tweeted every time the chat came up on another Whiskey site. I had checks to prevent this from happening, but it only worked if the chats all went up during a 10 minute time frame. I'll fix this when I have the time to do so.
Dave created a blue warrior along side the Chat Dragon but he never used it for anything. So I'm going to use it as a mascot of sorts for the bot. The Chat Dragon is the thing that prevents us use from accessing the chat. It is the Whiskey Warrior what keeps the dragon away during a live stream so we can use the chat. Or that's how want it to be like!
While I was making the avatar and background for the Twitter page. I ended up making wallpapers (1920x1080) out of the Chat Dragon and the Whiskey Warrior. So here's a bit of a bonus:
Jan 8, 2012 - It now tweets "Starting Soon" when the chat is up and if the countdown timer is under an hour. It will tweet "Live Now" when the justin.tv channel goes live instead of when the countdown reaches 0.