Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
paragraf-lex authored and StyleCIBot committed Jan 9, 2019
1 parent b37b06f commit 0e05cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function on($event)
$this->event = $event;

$this->proceed = true;

}

return $this;
Expand Down
8 changes: 3 additions & 5 deletions src/Http/Controllers/ViberBotController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@
use Paragraf\ViberBot\Bot;
use Illuminate\Http\Request;
use Paragraf\ViberBot\Client;
use Paragraf\ViberBot\Event\ConversationStartedEvent;
use Paragraf\ViberBot\Messages\WelcomeMessage;
use Paragraf\ViberBot\TextMessage;
use Paragraf\ViberBot\Model\Button;
use App\Http\Controllers\Controller;
use Paragraf\ViberBot\Model\Keyboard;
use Paragraf\ViberBot\Model\ViberUser;
use Paragraf\ViberBot\Event\MessageEvent;
use Paragraf\ViberBot\Messages\KeyboardMessage;
use Paragraf\ViberBot\Event\ConversationStartedEvent;

class ViberBotController extends Controller
{
public function index(Request $request)
{

(new Bot($request, new TextMessage()))
->on(new ConversationStartedEvent($request->timestamp, $request->message_token,
new ViberUser($request->user['id'], $request->user['name']), $request->type, $request->context, $request->subscribed ))
->replay("Izlistavamo obaveze!")
new ViberUser($request->user['id'], $request->user['name']), $request->type, $request->context, $request->subscribed))
->replay('Izlistavamo obaveze!')
->send();

// (new Client())->broadcast('Zdravo tamo preko bare!', User::all(), 'name');
Expand Down

0 comments on commit 0e05cee

Please sign in to comment.