mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2007
Posts: 13
R
r2l Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: May 2007
Posts: 13
(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

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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


Invision Support
#Invision on irc.irchighway.net
Joined: May 2007
Posts: 13
R
r2l Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: May 2007
Posts: 13
so where does that code go

Last edited by r2l; 15/07/07 10:49 AM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Joined: May 2007
Posts: 13
R
r2l Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: May 2007
Posts: 13
thanks works great.


Link Copied to Clipboard