Go Back   Justin.tv Community Help Forums > Community Help > Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 04-09-2012, 03:05 PM
selosa selosa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Default

Quote:
Originally Posted by carlitosbahia View Post
you could use something like

Code:
on *:TEXT:!kiss*:#: { 
if ( $nick == nameofuserA ) describe $chan $nick Puckers Up and Kisses $2-
if ( $nick == nameofuserB ) describe $chan $nick Puckers Up and Kisses $2-
if ( $nick == nameofuserC ) describe $chan $nick Puckers Up and Kisses $2-
 }

or 

!kiss*:#: { 
if ( ( $nick == nameofuserA )  || ( $nick == nameofuserB )  || ( $nick == nameofuserC ) ) describe $chan $nick Puckers Up and Kisses $2-
 }

 || is the mirc's OR   ( && is AND )

ooops, multitasking so was too late
thanks carlitos!

I have another question, I have two windows of mirc opened, one for me and one for the bot. Everytime I save my bot.ini file, a pop up msg always opens up in the mirc window wherein the normal userid is logged in, it says file 'bot' has changed, reload from disk? And I always select no.

Is there a way to open just one mirc and have two window tabs in it, one for normal user with no remote script loaded and one for the bot with the bot script loaded without messing up the whole application?.

Last edited by selosa; 04-09-2012 at 03:08 PM.
Reply With Quote
  #32  
Old 04-09-2012, 03:19 PM
carlitosbahia's Avatar
carlitosbahia carlitosbahia is offline
Justin.tv Admin
 
Join Date: Aug 2009
Posts: 1,542
Default

what i do is run 2 mirc instances one for my name and other for a bot, then you can have two sets of files (ini files, scripts, configurations, etc) http://forums.mirc.com/ubbthreads.ph...e/1#Post233027

if what you are doing is already that, just be sure to configure to save the files for each one in a separate place so you don't overwrite them
Reply With Quote
  #33  
Old 04-09-2012, 03:34 PM
selosa selosa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Default

Quote:
Originally Posted by carlitosbahia View Post
what i do is run 2 mirc instances one for my name and other for a bot, then you can have two sets of files (ini files, scripts, configurations, etc) http://forums.mirc.com/ubbthreads.ph...e/1#Post233027

if what you are doing is already that, just be sure to configure to save the files for each one in a separate place so you don't overwrite them
thanks so much carlitos!
Reply With Quote
  #34  
Old 04-16-2012, 06:44 PM
belair577 belair577 is offline
Junior Member
 
Join Date: Apr 2012
Posts: 28
Default im trying to figure out a points script

http://godsnotwheregodsnot.blogspot....ores-file.html
i cannot seem to got this to work to work as a line count script any ideas?
Reply With Quote
  #35  
Old 06-08-2012, 09:27 AM
selosa selosa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Default

Quote:
Originally Posted by thegameroom View Post

How to Make it So ONLY moderators of the channel can do the command


You would use this code:
Code:
on *:TEXT:clear:#: { if ($nick isop $chan) { msg $chan /clear }
  else { $msg $chan $nick You Can Not Clear the Chat! }
}
You would have to start the script like so:
Code:
 { if ($nick isop $chan) { $msg $chan
The { if ($nick isop $chan) will check to see if the user is a moderator in the channel.
For the, else { $msg $chan , you will put what your "bot" will say if the user is NOT a moderator.


I hope this will teach you a thing or two about basic mIRC scripting! If you have ANY questions just reply to the thread and I will try and help you out the best I can!
Hello!

I have this command for clearing the chat and banning/unbanning a viewer.

Quote:
on *:TEXT:!clear*:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { msg $chan /clear }
else { describe $chan $nick Sorry, You cannot clear the chat! :P }
}

on *:TEXT:!ban*:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { msg $chan /ban $2- }
else { describe $chan $nick Sorry, You're not allowed to use this command! :P }
}

on *:TEXT:!unban*:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { msg $chan /unban $2- }
else { describe $chan $nick Sorry, You're not allowed to use this command! :P }
}

I wanna ask how to make the bot sends a message after the chat has been cleared or after a viewer has been banned/unbanned? Like for example sending a message to the channel that the viewer has been already unbanned from the chatroom

Thanks in advance!
Reply With Quote
  #36  
Old 06-08-2012, 09:53 AM
carlitosbahia's Avatar
carlitosbahia carlitosbahia is offline
Justin.tv Admin
 
Join Date: Aug 2009
Posts: 1,542
Default

Code:
on *:TEXT:!clear:#: {
  if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) {
    msg $chan /clear
    msg $chan chat was cleared by $nick  
  } 
  else describe $chan $nick Sorry, You cannot clear the chat! :P 
}

on *:TEXT:!ban*:#: {
  if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) {
    msg $chan /ban $2
    msg $chan $2 was banned by $nick
  } 
  else describe $chan $nick Sorry, You're not allowed to use this command! :P 
  msg $chan $2 was banned by $nick
}

on *:TEXT:!unban*:#: { 
  if (($nick == name1) || ($nick == name2) || ($nick isop $chan))  {
    msg $chan /unban $2
    msg $chan $2 was unbanned by $nick
  } 
  else  describe $chan $nick Sorry, You're not allowed to use this command! :P 
}
$nick is the user/mod clearing the chat, banning/unbanning, $2 is the banned /unbanned user, yu can choose what and how to show
just remember to add the msg $chan inside the first if so that only shows in chat if the person can run that command


couple of things i would change if i use that for myself:
1)you don't rellay need the * after the clear, just !clear should be ok, why you need that to work also for !clear kjhglkhkljdfhjkl ?
2) the $2- after the ban and unban means you could have more than one string, but since jtv names are just one single string you don't need it, or you could try (and fail) a non exixtent user ( !ban john doe )

Last edited by carlitosbahia; 06-08-2012 at 09:59 AM.
Reply With Quote
  #37  
Old 06-08-2012, 11:55 AM
selosa selosa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Default

Quote:
Originally Posted by carlitosbahia View Post
[CODE]couple of things i would change if i use that for myself:
1)you don't rellay need the * after the clear, just !clear should be ok, why you need that to work also for !clear kjhglkhkljdfhjkl ?
2) the $2- after the ban and unban means you could have more than one string, but since jtv names are just one single string you don't need it, or you could try (and fail) a non exixtent user ( !ban john doe )
ahh, that explains the * and the - sign after the $2. thanks carlitos!

I tested the codes. All was working good except for one thing. The $nick part doesn't shows up in the chat.


Quote:
on *:TEXT:!clear:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { { msg $chan /clear } { describe $chan Chat was cleared by $nick. } }
else { describe $chan $nick Sorry, You cannot clear the chat! :P }
}

on *:TEXT:!ban*:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { { msg $chan /ban $2 } { describe $chan $2 was banned by $nick. } }
else { describe $chan $nick Sorry, You're not allowed to use this command! :P }
}

on *:TEXT:!unban*:#: { if (($nick == name1) || ($nick == name2) || ($nick isop $chan)) { { msg $chan /unban $2 } { describe $chan $2 was unbanned by $nick. } }
else { describe $chan $nick Sorry, You're not allowed to use this command! :P }
}

Oppps! Already figured it out, it should have space between $nick and the period. That's why it didn't recognize the $nick the first few tries I did, stupid me LOL

Thanks a lot Carlitos! You, thegameroom and everyone in this thread have been a great help

Last edited by selosa; 06-08-2012 at 12:08 PM.
Reply With Quote
  #38  
Old 08-06-2012, 02:43 PM
selosa selosa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Default

Hi Guys! It's me again, I've tried searching online but failed to get one so here I am again asking help from you

Basically, I wanna know how to add on my current bot script a line that automatically unban a certain user whenever he/she gets banned/timed out either by my channel bot using the !ban command or other mods using the normal way of banning/t.o in browsers.

And I have already checked the "do not show links" box on jtv settings but it doesnt seem to work. Links are still displayed on my channel. How will my channel bot do an automatic time out of 5 minutes for whoever post links on my channel?

One more thing, how will a make a set of words return one channel response. For example, I want my bot to return one response to whoever says goodnight, good night, nyt, or nytie in the channel? And even if that word(s) is enclosed in a sentence would still return response from bot? Is this possible?

Thanks in advance guys!

Last edited by selosa; 08-06-2012 at 02:52 PM.
Reply With Quote
  #39  
Old 11-18-2012, 07:47 AM
jimescfan jimescfan is offline
Junior Member
 
Join Date: Nov 2012
Posts: 2
Default This is not "basic" enough for me

I downloaded mIRC (which I have guess I need since it has not been mention on this thread). Now what? When I enter my justin.tv channel name, I do not see my chat. What do I do? Where do I place all these codes? Do I need to do something on justin.tv to activate the bots I create? Some extremely basic information would be very helpful. Thanks
Reply With Quote
  #40  
Old 11-18-2012, 10:22 AM
carlitosbahia's Avatar
carlitosbahia carlitosbahia is offline
Justin.tv Admin
 
Join Date: Aug 2009
Posts: 1,542
Default

Quote:
Originally Posted by jimescfan View Post
I downloaded mIRC (which I have guess I need since it has not been mention on this thread). Now what? When I enter my justin.tv channel name, I do not see my chat. What do I do? Where do I place all these codes? Do I need to do something on justin.tv to activate the bots I create? Some extremely basic information would be very helpful. Thanks

1) what steps are you following to enter your jtv channel name?
how to connect to jtv http://community.justin.tv/forums/showthread.php?t=8532

2) about where to place any code, most codes go into the remotes tab of the script editor (menu tools, script editor or ALT-, but before start copy/pasting a script from here or anywhere just be sure you use only what you need, just to chat you don't need any script, you need them only if you want to add some funtion to a bot to do something by itself
i would say that first you learn the basics of how to use mirc to chat only, and only then start thinking about a bot and what commands you need (also learning basics of scripting is a good idea other than just copy/paste code that you don't know what is doing)

3) there is nothing that you need to do to "activate" the bots, only limitation right now is that if the account is a new one (newer than the time of the whitelist, if you don't know what that means then your account for sure is not whitelisted) you can only use mirc at jtv at 5 channels at the same time (no total, just at a given time)
__________________
I like cheese.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:42 PM.