mIRC Homepage
Posted By: Amethyst Having ops make a bot talk - 09/07/03 05:37 AM
Hiya folks. I'd like some jabs in the right direction as to how to get my bot to be "animated" via ops. I'd like ops to be able to have the bot talk and do /me actions (in the main channel) at the direction of the channel ops.

I've seen this before in another channel, useing .say and .me as triggers in private message with the bot. I'm fairly new at programming IRC, but have some experience with other languages, so I'm not entirely unfamilliar with programming.

Thanks for anything you're able to offer!
Amethyst
Posted By: vexx0r Re: Having ops make a bot talk - 09/07/03 06:03 AM
heh, i am a newb too, but i will write something that may work out for you... i will not test it.


  • on *:TEXT:.me:?: { if ($nick isop #chanyouwantittosaytoo) { me #chanyouwantotsayto $2- | halt } }
    on *:TEXT:.say:?: { if ($nick isop #chanyouwantittosaytoo) { say #chanyouwantotsayto $2- | halt } }


agian this is not tested so if it does not work you can type /help on Text inside mirc and you should be able to find what your looking for.
Posted By: SladeKraven Re: Having ops make a bot talk - 09/07/03 06:13 AM
Lets assume the level of the ops is 100.
Code:
on 100:TEXT:!me*:?: {
  if ($2 == $null) { notice $nick Valid syntax is: !me #channelname Message }
  if ($2) && ($3) { describe $2 $3-  }
}



This will trigger in a Private Message.
Level 100 users type: !me #Channel message


/help on text
Posted By: SladeKraven Re: Having ops make a bot talk - 09/07/03 06:24 AM
Firstly you can't use the /me command in a on text event. Secondly what if the original poster has more than one channel. I have to give credit to you on the /halt command though.
Code:
on *:TEXT:.me*:?: { 
if ($nick isop $2) { describe $2 $3- | halt }
}
on *:TEXT:.say*:?: { 
if ($nick isop $2) { say $2 $3- | halt }
}
Posted By: vexx0r Re: Having ops make a bot talk - 09/07/03 06:29 AM
Like I said I am a newb, thank you for showing me the correct way, I will never us it in this way but it may come in handy sometime.
Posted By: SladeKraven Re: Having ops make a bot talk - 09/07/03 06:31 AM
It's ok. grin
Posted By: Jagfire Re: Having ops make a bot talk - 09/07/03 07:14 AM
Quote:
I'm fairly new at programming IRC, but have some experience with other languages, so I'm not entirely unfamilliar with programming.


Don't be mistaken, this is programming mIRC smile
Posted By: theRat Re: Having ops make a bot talk - 09/07/03 09:52 AM
This has nothing to do with programming... This is scripting...
Posted By: SladeKraven Re: Having ops make a bot talk - 09/07/03 10:05 AM
theRat, nice signature.
* SladeKraven knows Khaled is god. grin
Posted By: Amethyst Thanks all - 09/07/03 04:26 PM
I'lll give your suggestions a try, and let ya know what happens.
Posted By: Jagfire Re: Having ops make a bot talk - 09/07/03 09:30 PM
Scripting in mIRC, that's what I meant.
© mIRC Discussion Forums