# HG changeset patch # User df # Date 1228639645 0 # Node ID ba7303a5f42df1a45f6f51e90a9d352d16427ee9 # Parent c25d5c1e7f287d3a6480d6cfa3a09037b78ff16f Added \!update command diff -r c25d5c1e7f28 -r ba7303a5f42d skillbot.pl --- a/skillbot.pl Sat Dec 06 23:56:28 2008 +0000 +++ b/skillbot.pl Sun Dec 07 08:47:25 2008 +0000 @@ -225,6 +225,7 @@ my ($self, $event) = @_; my ($their_nick, $msg) = ($event->nick, $event->args); + # lists the current chars in training of the caller if ($msg =~ /^\!eta(\s+(.+))?/i) { my $found = 0; for my $f (@friends) { @@ -248,6 +249,14 @@ $self->privmsg('#' . $config{channel}, "No characters found"); } } + + # force update/reload of the friends/training data + if ($msg =~ /^\!update/i) { + update_friends($self); + check_training($self); + $self->privmsg('#' . $config{channel}, "Done"); + } + } sub on_notice