Skip to content

Commit

Permalink
Removed non implemented methods for now
Browse files Browse the repository at this point in the history
  • Loading branch information
PeeHaa committed Jan 11, 2016
1 parent ce0abcf commit f81a66d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
4 changes: 0 additions & 4 deletions src/Chat/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@
interface Command
{
public function handle(Message $message);

public function getHelp(Message $message);

public function getDescription(Message $message);
}
38 changes: 0 additions & 38 deletions src/Chat/Command/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,42 +52,4 @@ private function getVersion(Message $message)

yield $promise;
}

// @todo implement me
public function getHelp(Message $message)
{
$body = (new FormBody)
->addField('text', '`!!version` - This command doesn\'t need parameters.')
->addField('fkey', $this->chatKey)
;

$request = (new Request)
->setUri('http://chat.stackoverflow.com/chats/' . $message->getRoomid() . '/messages/new')
->setMethod('POST')
->setBody($body)
;

$promise = $this->httpClient->request($request);

yield $promise;
}

// @todo implement me
public function getDescription(Message $message)
{
$body = (new FormBody)
->addField('text', 'Simple demo plugin which just posts the current version of the bot.')
->addField('fkey', $this->chatKey)
;

$request = (new Request)
->setUri('http://chat.stackoverflow.com/chats/' . $message->getRoomid() . '/messages/new')
->setMethod('POST')
->setBody($body)
;

$promise = $this->httpClient->request($request);

yield $promise;
}
}

0 comments on commit f81a66d

Please sign in to comment.