- Timestamp:
- Sep 13, 2010 11:02:26 PM (14 years ago)
- Branches:
- master, trunk
- Children:
- c273ad8
- Parents:
- 035465b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
twitter/twitterbot.pl
red4ab0c r35889d4 20 20 my $stat = loadconf("$Bin/status.yml"); 21 21 if (! defined $stat) { 22 $stat = { 23 # do not set to 0 24 since_id => 1, 25 }; 22 $stat = {}; 26 23 } 27 24 … … 34 31 my $tweet; 35 32 36 $tweet = or_search($bot, $conf->{hashtag}, $stat->{s ince_id});33 $tweet = or_search($bot, $conf->{hashtag}, $stat->{search}); 37 34 if ($tweet) { 38 35 %tweets = (%tweets, %$tweet); 39 36 } 40 37 41 $tweet = mentions_ids($bot, $stat->{ since_id});38 $tweet = mentions_ids($bot, $stat->{mention}); 42 39 if ($tweet) { 43 40 %tweets = (%tweets, %$tweet); … … 62 59 } 63 60 64 $stat->{ since_id}= $id;61 $stat->{$tweets{$id}} = $id; 65 62 } 66 63 … … 113 110 my $bot = shift @_; 114 111 my $keywords = shift @_; 115 my $since_id = shift @_ ;112 my $since_id = shift @_ || 1; 116 113 117 114 my $key = ""; … … 162 159 163 160 my $bot = shift @_; 164 my $since_id = shift @_ ;161 my $since_id = shift @_ || 1; 165 162 166 163 my $res;
Note: See TracChangeset
for help on using the changeset viewer.