Adding how much you have to wait to give karma again.
This commit is contained in:
parent
fed08e2271
commit
1d6af96d00
@ -144,9 +144,10 @@ sub check_can_modify_karma {
|
||||
);
|
||||
return 1;
|
||||
}
|
||||
my $last_karma_given_date = $user->last_karma_given_date;
|
||||
$telegram->send_message(
|
||||
chat_id => $chat_id,
|
||||
text => "You cannot give karma yet wait a bit.",
|
||||
text => "You cannot give karma yet wait a bit until <b>@{[xml_escape($last_karma_given_date.'')]}</b>.",
|
||||
);
|
||||
return 0;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ sub id_user {
|
||||
if ( defined $last_karma_given_date ) {
|
||||
$self->{last_karma_given_date} = $last_karma_given_date;
|
||||
}
|
||||
return $self->{last_karma_given_date};
|
||||
return $self->{last_karma_given_date}->clone;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user