Bot that will automatically run an advert every 20 minutes?

480 views
Skip to first unread message

Jason Axelrod

unread,
Feb 4, 2012, 12:20:13 AM2/4/12
to Justin.tv API Developers
Right now, I am using a simple mIRC script with "/repeat #8wayrun 0
1200 .viewers" to automatically run an ad every 20 minutes. There are
problems with this though. First of all, I channel moderators/editors
cant run the .viewers command, only the channel owner can. So I am
forced to run the bot as the channel owner; which sucks when I need to
log into the chat on my main computer, because it logs off on my other
computer and the /repeat script is lost.

What I would like to do is create a bot that sits in the channel,
which is not the channel owner, but that can still run ads. Then with
my main account, I would like to be able to type things like:

!adverts 20 (to set the bot to run an ad every 20 minutes)
!adverts 0 (to set the bot to stop running ads)

How would something like this be possible? I'm a complete noob when it
comes to IRC, so please lay it all out for me.

moocat

unread,
Feb 6, 2012, 3:57:08 PM2/6/12
to Justin.tv API Developers
My bot (moobot3) does this by using the Twitch dashboard, where all
editors can run a commercial. It's the only way to do it as far as I
know.
Just create some HTTP sockets, log in, store the cookies and do the
requests like you would in a normal browser.

Mike Ossareh

unread,
Feb 6, 2012, 4:52:13 PM2/6/12
to justintv-ap...@googlegroups.com
On Mon, Feb 6, 2012 at 12:57 PM, moocat <moo...@gmail.com> wrote:
My bot (moobot3) does this by using the Twitch dashboard, where all
editors can run a commercial. It's the only way to do it as far as I
know.
Just create some HTTP sockets, log in, store the cookies and do the
requests like you would in a normal browser.


moocat

unread,
Feb 6, 2012, 5:10:36 PM2/6/12
to Justin.tv API Developers
Interesting. That's rather new though isn't it? (last days) If so does
that mean you will be updating the API with more nifty things soon?
Can you tell any of them? For example I'd really like to be able to
set the chat welcome message through the API.

On Feb 6, 10:52 pm, Mike Ossareh <ossa...@twitch.tv> wrote:

Mike Ossareh

unread,
Feb 6, 2012, 10:47:40 PM2/6/12
to justintv-ap...@googlegroups.com

This has actually existed for a while but wasn't documented until today.

There will definitely be a lot of work over the next few months to make a ballerific v2 API. Stay tuned.

--
You received this message because you are subscribed to the Google Groups "Justin.tv API Developers" group.
To post to this group, send email to justintv-ap...@googlegroups.com.
To unsubscribe from this group, send email to justintv-api-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/justintv-api-developers?hl=en.

Reply all
Reply to author
Forward
0 new messages