Skip to content

Commit 00c950a

Browse files
author
Praesidiarius
committed
better index
1 parent 6efe0c7 commit 00c950a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ All notable changes to oneplace-chat will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.0.1] -
8+
## [1.0.2] -2021-04-21
9+
10+
### Changed
11+
- Better Welcome Message
12+
13+
## [1.0.1] -2021-04-21
914

1015
### Fixed
1116
- RPS Matching fixes
1217
- Return correct menu when game limit reached
1318
- security fixes
1419

15-
## [1.0.0] -
20+
## [1.0.0] - 2021-04-12
1621

1722
### Added
1823
- Login / Signup

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "onePlace Faucet Telegram Bot Module",
44
"type": "oneplace-module",
55
"license": "BSD-3-Clause",
6-
"version": "1.0.1",
6+
"version": "1.0.2",
77
"keywords": [
88
"laminas",
99
"mvc",

src/Controller/TelegramController.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Laminas\Db\Sql\Where;
2626
use Laminas\Db\TableGateway\TableGateway;
2727
use MongoDB\Driver\Server;
28+
use OnePlace\Faucet\Tgbot\Module;
2829
use OnePlace\User\Model\UserTable;
2930
use OnePlace\Faucet\RPSServer\Controller\ServerController;
3031

@@ -76,9 +77,13 @@ public function __construct(AdapterInterface $oDbAdapter,UserTable $oTableGatewa
7677
public function indexAction() {
7778
$this->layout('layout/json');
7879

79-
echo 'Welcome to Telegram Bot API';
80+
$aReturn = [
81+
'state' => 'success',
82+
'version' => Module::VERSION,
83+
'message' => 'Welcome to Telegram Bot API Version '.Module::VERSION,
84+
];
8085

81-
return false;
86+
return $this->defaultJSONResponse($aReturn);
8287
}
8388

8489
private function loadTelegramPLCUser($iChatID) {

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Module {
2828
*
2929
* @since 1.0.0
3030
*/
31-
const VERSION = '1.0.1';
31+
const VERSION = '1.0.2';
3232

3333
/**
3434
* Load module config file

0 commit comments

Comments
 (0)