Last active
August 29, 2015 14:02
-
-
Save banditkroot/a3c25a7a63dab2822f8c to your computer and use it in GitHub Desktop.
Automatisation script, for the frenchberet marathon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Xchat qw(:all); | |
my @words = ("!runner", "!dons", "!planning", "!now", "!screen", "!war"); | |
my $i = 0; | |
register('FrenchBerets', '1.0', 'Automatisation des commandes du frenchberet', \&unload); | |
prnt("\cC08FrenchBeret chargé !"); | |
hook_timer('300000', \&automatisation); | |
sub automatisation { | |
set_context('#djkanjo'); | |
command("say $words[$i]"); | |
$i++; | |
if ($i == 6) { $i = 0; } | |
return EAT_ALL; | |
} | |
#Déchargement de script | |
sub unload { | |
prnt("\cC08FrenchBeret déchargé."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment