Skip to content

Instantly share code, notes, and snippets.

@banditkroot
Last active August 29, 2015 14:02
Show Gist options
  • Save banditkroot/a3c25a7a63dab2822f8c to your computer and use it in GitHub Desktop.
Save banditkroot/a3c25a7a63dab2822f8c to your computer and use it in GitHub Desktop.
Automatisation script, for the frenchberet marathon
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