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:
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.
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!) }
}