if you pm the bot it will respond with:
No PM On ChocolateOrange You Are breaching Geekshed's TOS... http://www.geekshed.net/tos/ You will be reported Goodbye... Then it will pm you with the nick that pm your bot ```mirc on *:OPEN:?:*: { /msg $nick No PM On $me /msg $nick You Are breaching IRC SEVER's TOS... http://www.server.site/tos/ (LOCATION) /msg $nick You will be reported /msg $nick Goodbye... /close -icfgms@ /notice YourNick Please note $nick has PM'ed me } ```Not realy..... If your ignored for 15mins you cant trigger anything for 15mins. What if ur bot has more commands the users want to use? Then they have to wait 15mins. You wouldnt be able to use simple on *:text: events......
BTW: IF you have an example of what you mean with /ignore in a whole script, post it and try to make it clear. For now i dont get you very well.
No it does not. It is absolutely zero protection and a waste of bytes. Every three seconds it can be triggered and cause one message to be sent and five unnamed timers to start. Having a delay in the timers will make no difference after several triggers. It would be far better for everyone if it only sent one message to the offending nick and then put that nick on private ignore for about 15 minutes or more.
Bielie
Instead of:
if ($(,$+(%,flood,$nick))) { return }
set -eu3 $+(%,flood,$nick)
You could use /ignore for private messages with a time of like an hour or whatever. Also, all those messages to the offending $nick would be better combined into one message. That 3 second delay with all those messages and timers isn't really gonna stop it from flooding.
on ^*:OPEN:?:*: {
if ($(,$+(%,flood,$nick))) { return }
set -eu3 $+(%,flood,$nick)
else {
msg $nick No PM On $me | .timer 1 2 msg $nick You Are breaching IRC SEVER's TOS... | .timer 1 3 msg $nick http://www.server.site/tos/ (LOCATION) | .timer 1 4 msg $nick You will be reported | .timer 1 5 msg $nick Goodbye... | .timer 1 6 notice $me Please note $nick has PM'ed me | haltdef }
I cleaned it a bit up and added timers else your bot might get kicked for flooding. I also added a flood control that will ignore for 3 seconds after te command is triggered.
Enjoy!!!
well you may want to add some flood control or a one time response to the person or risk being flooded off..
also why use so many switches for ur close? -m will do for a pm
you said " Then it will pm you with the nick that pm your bot "
don't you mean notice
for this
/notice YourNick Please note $nick has PM'ed me
you could just get rid of the YourNick part an use $me
notice $me Please note $nick has PM'ed me