Commit 9c9ab651 authored by Armando Lüscher's avatar Armando Lüscher

Just inherit repeating documentation blocks for Admin commands as well.

parent 5e923725
......@@ -22,54 +22,17 @@ use Longman\TelegramBot\Request;
*/
class ChatsCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'chats';
/**
* Description
*
* @var string
*/
protected $description = 'List all chats stored by the bot';
/**
* Usage
*
* @var string
*/
protected $usage = '/chats';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**
* If this command needs mysql
*
* @var boolean
*/
protected $need_mysql = false;
/**#@-*/
/**
* Execution if MySQL is required but not available
......
......@@ -21,54 +21,17 @@ use Longman\TelegramBot\Request;
*/
class SendtoallCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'sendtoall';
/**
* Description
*
* @var string
*/
protected $description = 'Send the message to all the user\'s bot';
/**
* Usage
*
* @var string
*/
protected $usage = '/sendall <message to send>';
/**
* Version
*
* @var string
*/
protected $version = '1.2.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**
* If this command needs mysql
*
* @var boolean
*/
protected $need_mysql = true;
/**#@-*/
/**
* Execution if MySQL is required but not available
......
......@@ -21,54 +21,17 @@ use Longman\TelegramBot\Request;
*/
class SendtochannelCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'sendtochannel';
/**
* Description
*
* @var string
*/
protected $description = 'Send message to a channel';
/**
* Usage
*
* @var string
*/
protected $usage = '/sendchannel <message to send>';
/**
* Version
*
* @var string
*/
protected $version = '0.1.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**
* If this command needs mysql
*
* @var boolean
*/
protected $need_mysql = false;
/**#@-*/
/**
* Execute command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment