@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Nopolabs\Yabot\Plugins\Giphy\GiphyService; |
| 11 | 11 | use Nopolabs\Yabot\Plugins\Rss\RssService; |
| 12 | 12 | use Psr\Log\LoggerInterface; |
| 13 | -use React\EventLoop\LoopInterface; |
|
| 14 | 13 | |
| 15 | 14 | class NytPlugin implements PluginInterface |
| 16 | 15 | { |
@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | $this->respond($msg); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $force |
|
| 58 | + */ |
|
| 56 | 59 | private function respond(Message $msg, $force = null) |
| 57 | 60 | { |
| 58 | 61 | $url = $this->url($force); |
@@ -67,6 +70,9 @@ discard block |
||
| 67 | 70 | ); |
| 68 | 71 | } |
| 69 | 72 | |
| 73 | + /** |
|
| 74 | + * @return string |
|
| 75 | + */ |
|
| 70 | 76 | private function url($force = null) |
| 71 | 77 | { |
| 72 | 78 | $query = $force ? "?force=$force" : ''; |