Index: twitter/twitterbot.pl
===================================================================
--- twitter/twitterbot.pl	(revision ed4ab0c08455fcdc47ad056e4700b02615573087)
+++ twitter/twitterbot.pl	(revision 35889d4eb83a3569fbcc4c7b4792656f000d1ac8)
@@ -20,8 +20,5 @@
 my $stat = loadconf("$Bin/status.yml");
 if (! defined $stat) {
-    $stat = {
-        # do not set to 0
-        since_id => 1,
-    };
+    $stat = {};
 }
 
@@ -34,10 +31,10 @@
 my $tweet;
 
-$tweet = or_search($bot, $conf->{hashtag}, $stat->{since_id});
+$tweet = or_search($bot, $conf->{hashtag}, $stat->{search});
 if ($tweet) {
     %tweets = (%tweets, %$tweet);
 }
 
-$tweet = mentions_ids($bot, $stat->{since_id});
+$tweet = mentions_ids($bot, $stat->{mention});
 if ($tweet) {
     %tweets = (%tweets, %$tweet);
@@ -62,5 +59,5 @@
     }
     
-    $stat->{since_id}   = $id;
+    $stat->{$tweets{$id}} = $id;
 }
 
@@ -113,5 +110,5 @@
     my $bot      = shift @_;
     my $keywords = shift @_;
-    my $since_id = shift @_;
+    my $since_id = shift @_ || 1;
     
     my $key = "";
@@ -162,5 +159,5 @@
     
     my $bot      = shift @_;
-    my $since_id = shift @_;
+    my $since_id = shift @_ || 1;
     
     my $res;
