Page 1 of 1

Nick specific Script

PostPosted: Sat Aug 14, 2010 5:47 am
by bensonjunior
I'm trying to write a script that when triggered, only my "bot" nick will say it
So if someone says "Hello" (Or any trigger) I want it so the remote trigger "Hello how are you?" (or any response) is only said by my "bot" instead of both the bot and me.
Is there a way to do that?

Re: Nick specific Script

PostPosted: Sun Sep 19, 2010 1:09 am
by auv5
Code: Select all
if ($me == "BotNick")
{
      ;Put mIRC command here
}

Replace BotNick with your bot's nick, and put your command's code inside the brackets.

Re: Nick specific Script

PostPosted: Mon Sep 20, 2010 12:34 am
by GrimReaper
auv5 wrote:
Code: Select all
if ($me == "BotNick")
{
      ;Put mIRC command here
}

Replace BotNick with your bot's nick, and put your command's code inside the brackets.


The way auv5 has it is /kind/ of correct, You don't use " quotes in the script.

You could do it like.

Code: Select all
 on *:TEXT:Hello:#yourchannel: {
  if ($me == botnickhere) {
    msg $chan hello there $+($nick,!)
  }
}