Avatar image for vager
Posted by vager (1677 posts) -

@WhiskeyLive

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.

Extra Stuff

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:

The Whiskey Warrior!
The Whiskey Warrior!
The Chat Dragon!
The Chat Dragon!

Change Log

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.

Avatar image for vager
#1 Edited by vager (1677 posts) -

@WhiskeyLive

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.

Extra Stuff

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:

The Whiskey Warrior!
The Whiskey Warrior!
The Chat Dragon!
The Chat Dragon!

Change Log

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.

Avatar image for glentennis
#2 Posted by GlenTennis (3273 posts) -

Awesome work!

Avatar image for buckybit
#3 Posted by buckybit (1517 posts) -

+1

Everytime a live event starts I get a good vibe in my pants ... by my phone.

Avatar image for cptchiken
#4 Posted by CptChiken (2058 posts) -

Nice stuff, this will be useful as living in England the live shows are often at hard to catch times.

Avatar image for melos
#5 Posted by Melos (240 posts) -

All I'd ever see is a chat dragon telling me there's no live stream if it weren't for you, Vager. Your bot continues to be one of the best things to come from the community.

Avatar image for efwefwe
#6 Posted by wefwefasdf (6730 posts) -

Those wallpapers are awesome. Thanks!

Avatar image for mr_skeleton
#7 Edited by Mr_Skeleton (5195 posts) -

I shall name that mascot Dovahkiin!

Avatar image for deegee
#8 Posted by DeeGee (2192 posts) -

What if I'm only interesed in Giant Bomb live streams?

Avatar image for hydrotherion1979
#9 Posted by hydrotherion1979 (61 posts) -

awesome wallies!

Avatar image for rjayb89
#10 Posted by rjayb89 (7811 posts) -

Me likey.

Online
Avatar image for vager
#11 Posted by vager (1677 posts) -

@DeeGee: I thought of separating each site into their own account, but that would be a major pain to manage. You'll just have to ignore the tweets of streams your not interested in.

Avatar image for selfconfessedcynic
#12 Posted by selfconfessedcynic (2970 posts) -

Oh my god - amazing work. Great twitter app, great wallpapers, great all round.

Keep on rocking duder.

Avatar image for mrklorox
#13 Posted by MrKlorox (11142 posts) -

Aw. Was hoping @GB_Live_Shows would stick around as a GB only feed. Well, I guess we'll see if this multi site bot becomes annoying or not.

Avatar image for little_socrates
#14 Posted by Little_Socrates (5844 posts) -

Thanks for this, duder! I was wondering how I was gonna find out about live streams this week, as I'll generally be out and about and my other Whiskey duder is still at school.

Avatar image for darkfury
#15 Posted by DarkFury (451 posts) -

This is great, congraluations on getting all the issues fixed and making it work for all sites!

Avatar image for lockwoodx
#16 Posted by lockwoodx (2531 posts) -

That Whiskey Warrior is pretty badass. Nice work.

Avatar image for graveyardpolka
#17 Posted by GraveyardPolka (334 posts) -

I love this and the wallpapers! Great work, Vager! ^_^

Avatar image for brackynews
#18 Edited by Brackynews (4387 posts) -

Great, updating my Twitter now. Y'know, every time I read "Chat Dragon" I don't think of Skyrim, I hear this....

Loading Video...
Avatar image for eightbitshik
#19 Edited by EightBitShik (1492 posts) -

How does the text part work does it auto send or do I have to put my information somewhere...(I'm sure twitter doesn't know my phone number) could you point me to the right direction?

*Scratch that I found out twitter does know my number :P

Avatar image for zameer
#20 Posted by zameer (636 posts) -

Bumping this because you're awesome, thanks a lot!

Avatar image for webscud
#21 Posted by WebScud (126 posts) -

The warrior should be named Vinvin.

Avatar image for guanophobic
#22 Edited by guanophobic (587 posts) -

Awesome! You guys know of any way to get mail or push notifications (IOS) when @whiskeylive tweets?

Avatar image for vager
#23 Posted by vager (1677 posts) -

@guanophobic: Try the Boxcar app. It provides push notifications for various things including tweets from specific users.

Avatar image for extremejesus
#24 Posted by ExtremeJesus (87 posts) -

Awesome job. Using this along with tweetymail means I actually catch some of the live content now. Thanks a lot.

Avatar image for little_socrates
#25 Posted by Little_Socrates (5844 posts) -

So glad this still works even after the CBSi split. Vaguely miss getting texts about Tested, but this is still awesome. Thanks so much.