Skip to content

Commit

Permalink
Item1803: changed clientname and url to config parameters (even thoug…
Browse files Browse the repository at this point in the history
…h i can't get them to show---it always posts as Net::Twitter

git-svn-id: http://svn.foswiki.org/trunk/WikiBot@4473 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Jul 8, 2009
1 parent 8c57bd1 commit df603b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions BotModules/Twitter.bm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ sub RegisterConfig {
$self->registerVariables(
['username', 1, 1, undef],
['password', 1, 1, undef],
['clientname', 1, 1, '#foswiki'],
['clientname', 1, 1, undef],
['clienturl', 1, 1, undef],
);
}

Expand All @@ -42,8 +43,8 @@ sub Told {
my $twitter = Net::Twitter::Lite->new(
username => $self->{username},
password => $self->{password},
clientname => '#foswiki',
clienturl => 'http://foswiki.org/Development/FoswikiBot',
clientname => $self->{clientname},
clienturl => $self->{clienturl},
);

$twitter->update( $tweet );
Expand Down

0 comments on commit df603b3

Please sign in to comment.