From dcf31fb6d0e350cee83add5925a15bf8a51f91dd Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Sat, 17 Apr 2021 18:02:43 +0200 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4a095d..e1c2d61 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# runnerbot +# @runnerbot RUN Polito's internal Telegram bot From 153c7d59eded5df53a4afbb65f3390a00ca515b5 Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Sat, 17 Apr 2021 18:03:06 +0200 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1c2d61..fc381e0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# @runnerbot +# @RunnerBOT RUN Polito's internal Telegram bot From 054dedf71303a5eea7ba28df30fd5a5426ea724c Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Sat, 17 Apr 2021 18:04:25 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fc381e0..4ee76b6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # @RunnerBOT - RUN Polito's internal Telegram bot + RUN Polito's internal Telegram bot. Based on https://github.com/php-telegram-bot From 11ad671fa8e8da12f241787fe757e5c825d20361 Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Sun, 18 Apr 2021 16:00:35 +0200 Subject: [PATCH 4/5] Update UploadCommand.php --- Commands/UploadCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/UploadCommand.php b/Commands/UploadCommand.php index b51a3c5..971b97e 100644 --- a/Commands/UploadCommand.php +++ b/Commands/UploadCommand.php @@ -129,7 +129,7 @@ class UploadCommand extends UserCommand $newfilename = strtoupper(uniqid()) . '.' . end($temp); if(rename($tempfile, $path."/".$newfilename)) { - // if($clamav->scan("/ssda1/www/portal.runpolito.it/lib/tmp/".$newfilename)) + // if($clamav->scan("".$newfilename)) // { $mime = mime_content_type($path."/".$newfilename); $extp = explode("/", $mime); @@ -188,4 +188,4 @@ class UploadCommand extends UserCommand } } -} \ No newline at end of file +} From 38c85d3b39fa04c272dee303fe2c1feb46669206 Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Wed, 21 Apr 2021 23:50:38 +0200 Subject: [PATCH 5/5] Bugfix See https://areait.runpolito.it/bugtracker/view.php?id=2 --- Commands/ShortenCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/ShortenCommand.php b/Commands/ShortenCommand.php index 35a4a98..e528810 100644 --- a/Commands/ShortenCommand.php +++ b/Commands/ShortenCommand.php @@ -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']."+"; } @@ -141,4 +141,4 @@ class ShortenCommand extends UserCommand return $data; } -} \ No newline at end of file +}