mIRC Homepage
Posted By: r2l simple irc message bot plz help me - 05/07/07 11:47 PM
(WARNING i don't know anything about scripting)

I have searched the forums and google (google sucked balls) for info on how to make message bot. I had one before (a buddy coded it for me) but i was stupid and forgot to back it up when i reformatted so i know someone out there would be able to help me out.

the type of bot i am talking about is when a user in my irc channel types !commands or @commands it would /notice $nick with the info set. I know i could get some clanbot or w/e but i only need this bot for 2 days than thats it.

THANKS
Posted By: Riamus2 Re: simple irc message bot plz help me - 06/07/07 12:54 AM
That's a simple on TEXT event. /help on text

Code:
on *:text:!commands:#yourchannel: {
  .notice $nick Commands line 1...
  .notice $nick Commands line 2...
}


Here's a little more complicated one that helps prevent floods:

Code:
on *:text:!commands:#yourchannel: {
  if (%command.flud) { return }
  set -u5 %command.flud On
  .notice $nick Commands line 1...
  .notice $nick Commands line 2...
}


For either of those, just repeat the notice line as many times as you need. Just be aware that too many lines can get you kicked for excess flood. If you have many lines, you may want to consider using /play instead. /help /play
Posted By: r2l Re: simple irc message bot plz help me - 15/07/07 10:44 AM
so where does that code go
Posted By: SladeKraven Re: simple irc message bot plz help me - 15/07/07 11:25 AM
Put that in your Remote Scripts.

Open up the Scripts Editor by pressing Alt + R, then select File and New, then paste it in. smile
Posted By: r2l Re: simple irc message bot plz help me - 16/07/07 06:42 PM
thanks works great.
© mIRC Discussion Forums