Jump to content

Some days ago I looked up how to create a Twtich bot and and SEEMED to be pretty easy.

Since then I started creating one for a smaller streamer and all it should have been able to do would be knowing some commands and 1 out of 4 random messages every 5 minutes.

The commands were pretty easy to create but the second part is where I got stuck.

 

I was able to create a timer which worked with a single message, but as soon as I tried to put in a mechanism for multiple messages the timer was taken out and it didnt repeat the messages.

Here is what I've tried so far:

on *:TEXT:!starttimer:#: { /msg $chan /me Timer started  /timer1 0 120 /msg $chan {   var %msg = $rand(1,4)   if (%msg == 1) describe Message1   if (%msg == 2) describe Message2   if (%msg == 3) describe Message3   if (%msg == 4) describe Message4   }}

I once had one of these, now I've got this.

Link to comment
https://linustechtips.com/topic/204362-mirc-twitch-bot/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×