Nick specific Script

Moderator: GeekShed.Net Staff

Nick specific Script

Postby bensonjunior » Sat Aug 14, 2010 5:47 am

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?
bensonjunior
 
Posts: 2
Joined: Thu Jul 15, 2010 6:23 pm

Re: Nick specific Script

Postby auv5 » Sun Sep 19, 2010 1:09 am

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.
auv5
 
Posts: 8
Joined: Fri Apr 02, 2010 8:48 pm

Re: Nick specific Script

Postby GrimReaper » Mon Sep 20, 2010 12:34 am

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,!)
  }
}
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.


Return to Script help

Who is online

Users browsing this forum: No registered users and 10 guests

cron