Akick pour bot

Contenu du snippet

Voilà ma première source que je poste, c'est un systeme de akick pour bot, il suffit de taper !akick add <pseudo> <motif> pour rajouté un nick en akick et de taper !akick del <pseudo> pour supprimer le nick de la liste du bot. N'ésité pas à me dire mes erreurs ou se que je dois modifier, je suis toujours pres à m'amélioré.

Source / Exemple :


on *:text:*:#:{
  Tokenize 32 $strip($1-)
  if !akick == $1 && $3 == $me { msg $chan 4Impossible de me mettre moi meme en Akick $nick $+ par contre moi je peux te mettre en akick XD } { HALT }
  if oui == $1 && %akickbanok == ok { set %akickban. [ $+ [ %bannickok ] ] [ $+ [ $chan ] ] ok | msg $chan Ban 4activé1 pour6 %bannickok | unset %akickbanok  }
  if non == $1 && %akickbanok == ok { msg $chan Ban 4desactivé 1pour6 %bannickok | unset %akickbanok }
  if !akick == $1 && $2 == $null { msg $chan 4Syntaxe : !akick add pseudo message de kick / !akick del pseudo } { HALT }
  if !akick == $1 && $3 == $null { msg $chan 4Syntaxe : !akick add pseudo message de kick / !akick del pseudo } { HALT }
  if !akick == $1 && add == $2 && $4 == $null { msg $chan 4Syntaxe : !akick add pseudo message de kick / !akick del pseudo } { HALT }
  if !akick == $1 && add == $2 && ($nick !isop #) { msg $chan 4Acces refuser. }
  if !akick == $1 && del == $2 && ($nick !isop #) { msg $chan 4Acces refuser. }
  if !akick == $1 && add == $2 && ($nick isop #) && $3 == %akick. [ $+ [ $3 ] ] && $chan == %akickchan. [ $+ [ $3 ] ] [ $+ [ $chan ] ] { msg $chan 13 $+ %akick. [ $+ [ $3 ] ] 10est déjà dans ma liste d'4autokick. } { HALT }
  if !akick == $1 && del == $2 && ($nick isop #) && $3 != %akick. [ $+ [ $3 ] ] && $chan != %akickchan. [ $+ [ $3 ] ] [ $+ [ $chan ] ] { msg $chan 4 $+ $3 10n'est pas dans dans ma liste d'4autokick. } { HALT }
  if !akick == $1 && add == $2 && ($nick isop #) { Set %akick. [ $+ [ $3 ] ] $3 | set %akickchan. [ $+ [ $3 ] ] [ $+ [ $chan ] ] $chan | set %akickmsg. [ $+ [ $3 ] ] [ $+ [ $chan ] ] $4- | set %bannickok $3 | msg $chan 10 $+ %akick. [ $+ [ $3 ] ] 6a bien été rajouté dans ma liste d'auto4kick5, il sera kické avec ce message : 4 %akickmsg. [ $+ [ $3 ] ] [ $+ [ $chan ] ] 
  timermsgnban 1 1 set %akickbanok ok | msg $chan 4Appliquer un ban avec le kick ? (oui ou non) } 
  if !akick == $1 && del == $2 && ($nick isop #) { unSet %akick. [ $+ [ $3 ] ] | unset %akickchan. [ $+ [ $3 ] ] [ $+ [ $chan ] ] | unset %akickmsg. [ $+ [ $3 ] ] [ $+ [ $chan ] ] | unset %akickban. [ $+ [ $3 ] ] [ $+ [ $chan ] ] | msg $chan 10 $+ $3 4a bien été supprimé de ma liste d'auto4kick. }
}
on *:join:#:{
  if $nick == %akick. [ $+ [ $nick ] ] && $chan == %akickchan. [ $+ [ $nick ] ] [ $+ [ $chan ] ] { kick $chan $nick 4 $+ %akickmsg. [ $+ [ $nick ] ] [ $+ [ $chan ] ] }
  if $nick == %akick. [ $+ [ $nick ] ] && $chan == %akickchan. [ $+ [ $nick ] ] [ $+ [ $chan ] ] && %akickban. [ $+ [ $nick ] ] [ $+ [ $chan ] ] == ok { mode $chan +b $address($nick,2) }
}

Conclusion :


Voilà dite vos remarques.

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.