!say Command

By shaneny on Apr 06, 2010

A Simple Script For A Bot That When You Type: !say Anything , Your Bot Will Say Whatever You Put In After The !say.
It Will Only Work If Ops Type It.
Example:

!say Hello Hello Enjoy! _____________________________________________________________________ Please Go To www.komputerz.tk ```mirc #################################### #©ComputerCoderGuy www.komputerz.tk# #################################### on *:text:$($strip(!say *)):#: { if (!%f) { inc -u5 %f | msg # $iif($nick isop #,$2-,Access Denied!) } } ```

Comments

Sign in to comment.
Jethro   -  Jul 23, 2010

MartyniP, perhaps it's time you and shaneny work something out to resolve your personal grudges.

 Respond  
MartyniP   -  Jul 23, 2010

its a little un-protected! if the bot was founder, some op could make them selfs founder! or kick you, akick you, kick people above them, ban all the 'above' etc. even change channel settings!

 Respond  
shaneny   -  Apr 08, 2010

Guys I Didn't Copy It, It Is All My Own Work!

 Respond  
Jethro   -  Apr 07, 2010

C'mon edgy, don't be too "edgy."

If you look at mirc's help file. There are few examples that tell you how to initiate a text or action event by listening to certain triggers.

What shaneny posted was a code that's been made by a lot of people! There's no credit involved in that one-line snippet he posted.

Besides, shaneny's removed the snippet posted and used mine. What's the issue here? This is shaneny's own snippet section. He or she has the right to delete comments if need be.

 Respond  
Jethro   -  Apr 06, 2010

Why make the fuss over who gives to whom? This sort of code is very, very common.

shaneny, your current snippet won't work because you didn't leave a space between the word "on" and the asterisk symbol "*"

A code like this gets abused easily, because people could flood you by entering the trigger repeatedly.

This is what I would do if I were you:

on *:text:$($strip(!say *)):#: {
  if (!%f) { inc -u5 %f | msg # $iif($nick isop #,$2-,Access Denied!) }
}
 Respond  
shaneny   -  Apr 06, 2010

Thanks For Your Comments!

 Respond  
Newkronic   -  Apr 06, 2010

You might want to add a little bit of protection against something like !say $ip.
Maybe something like this
if ($count($2-,$,%) > 0) {
.msg $chan Illegal Chars
}
else {
.msg $chan $2-
}
}

 Respond  
falconr3   -  Apr 06, 2010

Thank you, but it should be:

on :TEXT:!say :#: { if ($nick isop $chan) { msg $chan $2- } }

and for any user to use it

on :TEXT:!say :#: { msg $chan $2- } }

 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.