Hi, it’s me koji ( a.k.a. foxdream2000angel ) from Justin TV.
How’s everyone?
Some ppl have been asking me how to make a bot for 10 min kickout or ban for using caps lock and URL link, etc.
So I decided to write about this today.
First of all, your bot must get a permission from Justin TV as you can make it work on mIRC chat.
I’ve already wrote about mIRC client setting as well as how to send a request to JTV for getting the permission. After you have finished reading the article, you will be able to make basic bot commands that work on Justin TV chat.
http://foxdream2000angel.wordpress.com/2009/06/22/how-to-make-a-chatbot-on-mirc/
So, then, how your bot can give timeout or ban chatters?
This is next step. And this is so easy to learn!
And don’t forget to make your bot a mod!
For example, the scripts below are for banning someone who said, ‘”Hey! Take of f your bra, baby! “
on +1:text:*take*off*bra*:# {
ban $chan $nick
msg $chan $nick $+! , you got banned from the chat automatically for posting naughty words!
}
Another example below is for giving 10-min timeout to someone who said, ” Obama is homo! “
on +1:text:*obama*homo*:# {
kick $chan $nick
msg $chan $nick $+! , you got 10 minute time-out automatically for posting political words!
}
Also below is another example of giving 10-min timeout to someone who posted a URL link.
on +1:text:*www*.*.*:# {
kick $chan $nick
msg $chan $nick $+! , you got 10 minute time-out automatically for using URL link!
}
And next step. Below is 10-min kickout for Caps. This is a bit long and it works like..
1. When you type ‘!!capskick on’, your bot gives 10-min kickout automatically to someone who used Caps.
2. When you type ‘!!capskick off’, your bot stops 10-min kickout.
3. When you type’!!caps kick 70′, your bot decides to kick out if someone uses caps of 70% of the sentense.
on *:TEXT:*:#:{
if ($me isop $chan) {
if ($nick !isop $chan) {
if (%capskick == on) && ($len($1-) > 5) {
set %caps.percent $calc($regex($1-,/[A-Z]/g)/$len($1-)*100)
if (%caps.percent > %caps.allowed) {
inc %kick
kick $chan $nick $round(%caps.percent,0) $+ % CAPS! 4[ $+ %kick $+ ]
msg $chan $nick $+! , you got 10 minute time-out automatically for using Caps Lock!
}
}
}
}
if ($1 == !!capskick) {
if ($nick isop $chan) {
if ($2 == on) { set %capskick on | msg $chan Capskick is on }
if ($2 == off) { set %capskick off | msg $chan Capskick is off }
if ($2 == set) { set %caps.allowed $3 | msg $chan Caps allowed set to %caps.allowed $+ % }
}
}
;
}
Good Luck!






