Skip to content

Instantly share code, notes, and snippets.

@DamianZaremba
Created July 25, 2011 16:55
Show Gist options
  • Save DamianZaremba/1104576 to your computer and use it in GitHub Desktop.
Save DamianZaremba/1104576 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use Net::Twitter::Lite;
use Date::Format;
my $client = Net::Twitter::Lite->new(
consumer_key => "",
consumer_secret => "",
);
$client->access_token("");
$client->access_token_secret("");
my @local_time = localtime(time);
my $boing_count = strftime("%I", @local_time);
my $message = "BOING " x $boing_count;
$message =~ s/\s+$//;
if( $client->update({ status => $message }) ) {
print "Status updated!\n";
} else {
print "Status could not be updated!\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment