Accueil > > > VOICI UN TAPAVU POUR BOT BIENSURE :)
VOICI UN TAPAVU POUR BOT BIENSURE :)
Information sur la source
Description
Une fois l'addon chargé dans un bot il suffit qu'une personne tape !tapavu <pseudo> pour que le bot lui dise si il la vu, si oui, si elle a déco, ou changé de pseudo etc.. c'est assez connu comme addon mais bon.. :) voici la version avec hashtable
Source
- on 1:start:{
- hmake tapavu 100
- hload tapavu tapavutemp.txt
- }
- on 1:part:#:{
- hadd tapavu $nick $+ . $+ $chan $address($nick,2) $ctime
- }
- on 1:quit:{
- hadd tapavu $nick $+ .quit $address($nick,2) $ctime $1-
- }
- on 1:nick:{
- hadd tapavu $nick $+ .nick $address($newnick,2) $ctime $newnick
- }
- on 1:text:!tapavu*:#:{
- if (!$2) { msg $chan j'ai pas vu qui ? }
- elseif ($2 == $me) { msg $chan je suis la :oÞ }
- elseif ($2 == $nick) { msg $chan Arretes de te moquer de moi :( }
- elseif ($2) {
- if ($2 ison $chan) { msg $chan Il(elle) est là ! Ouvres tes yeux ;) }
- else {
- if ($hget(tapavu,$2 $+ . $+ $chan)) {
- var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ . $+ $chan),2,32)
- msg $chan $2 ( $+ $gettok$hget(tapavu,$2 $+ . $+ $chan),1,32) $+ ) est parti de $chan il y a : $duration(%cb2)
- halt
- }
- if ($hget(tapavu,$2 $+ .quit)) {
- var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ .quit),2,32)
- msg $chan $2 ( $+ $gettok($hget(tapavu,$2 $+ .quit),1,32) $+ ) a quitté l'IRC il y a : $duration(%cb2) pour la raison suivante : $gettok($hget(tapavu,$2 $+ .quit),3-,32)
- halt
- }
- if ($hget(tapavu,$2 $+ .nick)) {
- var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ .nick),2,32)
- msg $chan $2 ( $+ $gettok($hget(tapavu,$2 $+ .nick),1,32) $+ ) a changé son pseudo en $gettok($hget(tapavu,$2 $+ .nick),3,32) il y a : $duration(%cb2)
- halt
- }
- else {
- msg $chan je n'ai pas vu $2 ici
- whois $2
- hadd -m whois nick $2
- hadd -m whois chan $chan
- enable #whoisTapavu
- }
- }
- }
- }
- #whoisTapavu off
- raw 319:*:msg $hget(whois,chan) Mais $hget(whois,nick) est sur: $3- | disable #whoisTapavu
- raw 401:*:msg $hget(whois,chan) $hget(whois,nick) n'est pas connecté(e) actuellement. | disable #whoisTapavu
- raw 318:*:disable #whoisTapavu
- #whoisTapavu end
- on 1:disconnect:{
- hsave tapavu tapavutemp.txt
- }
on 1:start:{
hmake tapavu 100
hload tapavu tapavutemp.txt
}
on 1:part:#:{
hadd tapavu $nick $+ . $+ $chan $address($nick,2) $ctime
}
on 1:quit:{
hadd tapavu $nick $+ .quit $address($nick,2) $ctime $1-
}
on 1:nick:{
hadd tapavu $nick $+ .nick $address($newnick,2) $ctime $newnick
}
on 1:text:!tapavu*:#:{
if (!$2) { msg $chan j'ai pas vu qui ? }
elseif ($2 == $me) { msg $chan je suis la :oÞ }
elseif ($2 == $nick) { msg $chan Arretes de te moquer de moi :( }
elseif ($2) {
if ($2 ison $chan) { msg $chan Il(elle) est là ! Ouvres tes yeux ;) }
else {
if ($hget(tapavu,$2 $+ . $+ $chan)) {
var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ . $+ $chan),2,32)
msg $chan $2 ( $+ $gettok$hget(tapavu,$2 $+ . $+ $chan),1,32) $+ ) est parti de $chan il y a : $duration(%cb2)
halt
}
if ($hget(tapavu,$2 $+ .quit)) {
var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ .quit),2,32)
msg $chan $2 ( $+ $gettok($hget(tapavu,$2 $+ .quit),1,32) $+ ) a quitté l'IRC il y a : $duration(%cb2) pour la raison suivante : $gettok($hget(tapavu,$2 $+ .quit),3-,32)
halt
}
if ($hget(tapavu,$2 $+ .nick)) {
var %cb2 $ctime - $gettok($hget(tapavu,$2 $+ .nick),2,32)
msg $chan $2 ( $+ $gettok($hget(tapavu,$2 $+ .nick),1,32) $+ ) a changé son pseudo en $gettok($hget(tapavu,$2 $+ .nick),3,32) il y a : $duration(%cb2)
halt
}
else {
msg $chan je n'ai pas vu $2 ici
whois $2
hadd -m whois nick $2
hadd -m whois chan $chan
enable #whoisTapavu
}
}
}
}
#whoisTapavu off
raw 319:*:msg $hget(whois,chan) Mais $hget(whois,nick) est sur: $3- | disable #whoisTapavu
raw 401:*:msg $hget(whois,chan) $hget(whois,nick) n'est pas connecté(e) actuellement. | disable #whoisTapavu
raw 318:*:disable #whoisTapavu
#whoisTapavu end
on 1:disconnect:{
hsave tapavu tapavutemp.txt
}
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
L'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIESL'INTERFACE NATURELLE DE WINDOWS PHONE 7 SERIES par odewit
La tendance est aux interfaces naturelles (NUI), et le keynote de Bill Buxton au MIX l'a bien souligné.
La charte graphique et ergonomique de Windows Phone 7 a donc été entièrement repensée en vue d'obtenir un maximum d'efficacité sur ce point. En re...
Cliquez pour lire la suite de l'article par odewit COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE?COMMENT MAPPER UNE VUE SQL SUR UNE COLLECTION DE COMPLEX TYPE? par Matthieu MEZIL
Avec EF, les vues doivent être mappées sur des entity types. Le problème c'est que les entity types doivent avoir une clé. Avec EF, nous avons les complex type qui n'ont pas de clé mais les vues ne peuvent pas être mappées dessus. Avec EF4, il est possibl...
Cliquez pour lire la suite de l'article par Matthieu MEZIL [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|