| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | return (new class($client) extends \CharlotteDunois\Livia\Commands\Command { |
||
| 12 | function __construct(\CharlotteDunois\Livia\Client $client) { |
||
| 13 | parent::__construct($client, array( |
||
| 14 | 'name' => 'ping', |
||
| 15 | 'aliases' => array(), |
||
| 16 | 'group' => 'utils', |
||
| 17 | 'description' => 'Sends a ping and measures the latency between command message and ping message. It will also display websocket ping.', |
||
| 18 | 'guildOnly' => false, |
||
| 19 | 'throttling' => array( |
||
| 20 | 'usages' => 5, |
||
| 21 | 'duration' => 10 |
||
| 22 | ), |
||
| 23 | 'guarded' => true |
||
| 24 | )); |
||
| 25 | } |
||
| 26 | |||
| 27 | function run(\CharlotteDunois\Livia\Commands\Context $context, \ArrayObject $args, bool $fromPattern) { |
||
| 37 | }); |
||
| 38 | } |
||
| 41 |