diff --git a/CHANGELOG.md b/CHANGELOG.md index be46937..793b993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,14 +5,19 @@ All notable changes to oneplace-chat will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.1] - +## [1.0.2] -2021-04-21 + +### Changed +- Better Welcome Message + +## [1.0.1] -2021-04-21 ### Fixed - RPS Matching fixes - Return correct menu when game limit reached - security fixes -## [1.0.0] - +## [1.0.0] - 2021-04-12 ### Added - Login / Signup diff --git a/composer.json b/composer.json index 8259e0f..e0f6406 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "onePlace Faucet Telegram Bot Module", "type": "oneplace-module", "license": "BSD-3-Clause", - "version": "1.0.1", + "version": "1.0.2", "keywords": [ "laminas", "mvc", diff --git a/src/Controller/TelegramController.php b/src/Controller/TelegramController.php index ba57598..7ae489b 100644 --- a/src/Controller/TelegramController.php +++ b/src/Controller/TelegramController.php @@ -25,6 +25,7 @@ use Laminas\Db\Sql\Where; use Laminas\Db\TableGateway\TableGateway; use MongoDB\Driver\Server; +use OnePlace\Faucet\Tgbot\Module; use OnePlace\User\Model\UserTable; use OnePlace\Faucet\RPSServer\Controller\ServerController; @@ -76,9 +77,13 @@ public function __construct(AdapterInterface $oDbAdapter,UserTable $oTableGatewa public function indexAction() { $this->layout('layout/json'); - echo 'Welcome to Telegram Bot API'; + $aReturn = [ + 'state' => 'success', + 'version' => Module::VERSION, + 'message' => 'Welcome to Telegram Bot API Version '.Module::VERSION, + ]; - return false; + return $this->defaultJSONResponse($aReturn); } private function loadTelegramPLCUser($iChatID) { diff --git a/src/Module.php b/src/Module.php index f94c2e7..d66d75b 100644 --- a/src/Module.php +++ b/src/Module.php @@ -28,7 +28,7 @@ class Module { * * @since 1.0.0 */ - const VERSION = '1.0.1'; + const VERSION = '1.0.2'; /** * Load module config file