mIRC Homepage
Posted By: Techchef Auto Voice Command Outside mIRC - 19/05/16 06:01 PM
I want to make a command that when someone sends a PM to my bot with (lets say for example)

!voice techchef

my bot would then add techchef to the auto voice list.
is this possible?
Posted By: westor Re: Auto Voice Command Outside mIRC - 19/05/16 06:14 PM
Try use this code:

Syntax: !voice <nickname> <#channel>

Code:
ON *:TEXT:*:?: {
  tokenize 32 $strip($1-)
  if ($1 == !voice) {
    if (!$2) { .msg $nick Error, Please specify a nickname! | return }
    if (!$3) { .msg $nick Error, Please specify a channel! | return }
    if ($avoice($2 $+ !*@*)) { .msg $nick Error, This nickname is already exists! | return }
    .avoice $2 $3 $network
    .msg $nick The $qt($2) nickname has been added into the autovoice list for $qt($3) channel into $qt($network) network.
  }
}
Posted By: Techchef Re: Auto Voice Command Outside mIRC - 19/05/16 06:24 PM
OK it kinda works...Is there a way we can do it without having to put the channel in? If not-its OK-Just asking smile
Posted By: Loki12583 Re: Auto Voice Command Outside mIRC - 19/05/16 06:49 PM
Are you only in a single channel? Hardcode it. Otherwise, no.
Posted By: Techchef Re: Auto Voice Command Outside mIRC - 19/05/16 07:06 PM
its actually 2 channels that the bot runs and both are used by the same users (the ones that will be auto voiced anyways)
© mIRC Discussion Forums