!request nickbot #chan HELP =D

Paste Your code(s) here, and state your problem.

!request nickbot #chan HELP =D

Postby InT69x » Mon Oct 12, 2009 7:00 pm

Code: Select all
; !request #channel

alias -l userlimit { return 5 }

on *:TEXT:!request *:#: {

  ; anti spam
  if (!$hget(nospam,channel)) && (!$hget(nospam,$+(nickname,.,$nick))) {
    .hadd -mu10 nospam channel 1 | .hadd -mu10 nospam $+(nickname,.,$nick) 1

    ; checking if $2 is valid
    if ($validchan($2)) {
      .hadd -m request nickname $nick | .hadd -m request channel $2

      .join $2

    }
    else { .msg $chan Error: please use $1 #channel }
  }
}



raw 366:*: {
  if ($2 == $hget(request,channel)) {
    if ($hget(request,nickname) !isop $2) { .msg $2 Your request have been denied }
    elseif ($nick($2,0) < $userlimit) { .msg $2 Your request have been denied }
    else {
      .msg $2 Your request has been accepted

      ; for further development, add a command to add a bot to the channel, fx.
      ; .msg botnick addchannel $2
    }
    .part $2
  }
}
alias -l validchan {
  if ($left($1,1) != $chr(35)) { return $false }
  if ($chr(44) isin $1) { return $false }
  return $true
}
 


Example :

Excalibur say : !request GLINED #Webone
Requestor notice to Excalibur : Request have been done wait ! I check conditions
Requestor join #webone, and check conditions.
Requestor part #webone
Requestor notice Excalibur: Conditions are ok, Bot Keygen added !
Requestor say #privatebot: !addchan Keygen #webone Excalibur


Sorry, I'am not english you can help me please?
InT69x
 

Re: !request nickbot #chan HELP =D

Postby zNigel- » Mon Oct 12, 2009 8:28 pm

Could you define what you need help with?
zNigel-
 

Re: !request nickbot #chan HELP =D

Postby InT69x » Mon Oct 12, 2009 9:15 pm

I need this ->>>>>><

Excalibur say : !request GLINED #Webone
Requestor notice to Excalibur : Request have been done wait ! I check conditions
Requestor join #webone, and check conditions.
Requestor part #webone
Requestor notice Excalibur: Conditions are ok, Bot GLINED added !
Requestor say #privatebot: !addchan GLINED #webone Excalibur
InT69x
 

Re: !request nickbot #chan HELP =D

Postby InT69x » Sat Oct 17, 2009 7:43 pm

up ?
InT69x
 


Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron