The Bot

By Tinus on Jul 23, 2006

look at the commands and you wil know enough

on *:text:!k*:#:{
if (nick == name)
kick $chan $2 $3- 
}
{
else
mode $chan +b $address
kick $chan $nick you do not have access in me goodbye
}
ON *:TEXT:!b*:#:{
if (nick == name)
mode +b $address
kick $chan $2 you are banned have a nice day
}
{
else
mode $chan +b $address
kick $chan $2 you are dismissed!
} 
on *:text:!op*:#:{
if (nick == name)
mode $chan +o $nick
}
{
else
mode $chan +b $address
kick $chan $nick have a nice day!
}
on *:text:!deop*:#:{
if (nick == name)
mode $chan -o $nick
}
{
else
mode $chan -ohv+b $nick $nick $nick $address
msg $nick that was not a smart move
}

Comments

Sign in to comment.
Noutrious   -  Sep 23, 2006

mode $chan +b $address
kick $chan $nick you do not have access in me goodbye
could be
.ban -k # $address($nick,2)
but its stupid, cause user cant know, maybe the command would be for everyone - thats really stupid.
BUT
on :text:!deop:#:{
if (nick == name)
mode $chan -o $nick
}
{
else
mode $chan -ohv+b $nick $nick $nick $address
msg $nick that was not a smart move
}
is even stuppider if the user has op/hop in the chan, why you should ban him?
Sorry, but this is really lame snippet, next time more thinking, less posting.

 Respond  
Noutrious   -  Sep 23, 2006

Tinus, like Pariah said, incorrect structure and if (nick == name) { could be if ($nick == %ownername) { and then user should just //set %ownername $me and wola, now it cas to change many things in the snippet for him to work.

 Respond  
xDaeMoN   -  Sep 20, 2006

Copy/Paste it on a new remote file. Do ALT-R -> File -> New.

 Respond  
BigBen   -  Sep 20, 2006

one thing, where do i put it?

 Respond  
Lazy   -  Jul 24, 2006

I am just guessing that Tinus is meaning for a user to change \'name\' to the owner of the bot. So they are the only ones allowed to use the commands. However s/he doesn\'t state that for anyone to know.

Try learning to code a little more before actually releasing something for someone to use. And when you do release something have some good notes/instructions on what users need to do in order to get it functioning properly.

I also give a score of 1.

 Respond  
krimson   -  Jul 23, 2006

This is just plain useless code. Here\'s why:

  1. You use \"if (nick == name)\" a lot, but those two strings ar never going to be equal (you should have use variables instead), so the only thing that\'s setting of on your events are the \"else\" parts

  2. There\'s no level check or any kind of restriction to prevent people from abusing this bot

  3. As Pariah pointed out, you have problems writing simple if statements; i suggest you read the help file more often

I can\'t give out more than 1 score for this snippet

 Respond  
Pariah   -  Jul 23, 2006

This isn\'t very different than the other \"bot\" you posted.
You have the structure wrong as well...
if (condition) {
commands
}
else {
commands
}

Overall, it\'s quite poorly coded, and it has no explantion whatsoever for a new user to be able to understand how to use it. Get\'s a 2 from me...

 Respond  
Tinus   -  Jul 23, 2006

simple bot just for amuters like me

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.