New command and bugfixes

New function /delshorten added, some minor bugfixes on other commands (see https://areait.runpolito.it/bugtracker/view.php?id=2 )
This commit is contained in:
CM
2021-04-23 01:45:17 +02:00
parent ace990e449
commit 6aef81f576
3 changed files with 151 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ class ShortenCommand extends UserCommand
if($reply != NULL)
{
$replytext1 = $reply->getText();
$result = json_decode($this->shorten($replytext1, $text, $user_id), true);
$result = json_decode($this->shorten($replytext1, strtolower($text), $user_id), true);
$replytext = $result['message']."\n\nShortened link: ".$result['shorturl']."\n\nQR Code: ".$result['shorturl'].".qr\n\nStats: ".$result['shorturl']."+";
}