Skip to content

Commit

Permalink
better index
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Apr 21, 2021
1 parent 6efe0c7 commit 00c950a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 7 additions & 2 deletions src/Controller/TelegramController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Module {
*
* @since 1.0.0
*/
const VERSION = '1.0.1';
const VERSION = '1.0.2';

/**
* Load module config file
Expand Down

0 comments on commit 00c950a

Please sign in to comment.