Commit 2029493 1 parent 2b93a9d commit 2029493 Copy full SHA for 2029493
File tree 5 files changed +32
-23
lines changed
5 files changed +32
-23
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- require_once __DIR__ . '\\ .. \\ vendor \\ autoload.php ' ;
3
+ require_once __DIR__ . '/../ vendor/ autoload.php ' ;
4
4
5
5
use Dotenv \Dotenv ;
6
6
use Ourted \Bot ;
@@ -12,7 +12,7 @@ class Ourted extends Bot
12
12
13
13
public function __construct ()
14
14
{
15
- $ dotenv = Dotenv::createImmutable (__DIR__ . ' /../ ' );
15
+ $ dotenv = Dotenv::createImmutable (__DIR__ );
16
16
$ dotenv ->load ();
17
17
$ this ->token = $ _ENV ['BOT_TOKEN ' ];
18
18
parent ::__construct ($ this ->token );
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Without Event Listener
15
15
``` php
16
16
<?php
17
17
18
- require_once __DIR__ . '\\ vendor\\ autoload.php';
18
+ require_once __DIR__ . '/ vendor/ autoload.php';
19
19
20
20
use Dotenv\Dotenv;
21
21
use Ourted\Bot;
@@ -27,7 +27,7 @@ class Ourted extends Bot
27
27
28
28
public function __construct()
29
29
{
30
- $dotenv = Dotenv::createImmutable(__DIR__ . '/../' );
30
+ $dotenv = Dotenv::createImmutable(__DIR__);
31
31
$dotenv->load();
32
32
$this->token = $_ENV['BOT_TOKEN'];
33
33
parent::__construct($this->token);
@@ -55,7 +55,7 @@ With Event Listener
55
55
``` php
56
56
<?php
57
57
58
- require_once __DIR__ . '\\ vendor\\ autoload.php';
58
+ require_once __DIR__ . '/ vendor/ autoload.php';
59
59
60
60
use Dotenv\Dotenv;
61
61
use Ourted\Bot;
@@ -67,7 +67,7 @@ class Ourted extends Bot
67
67
68
68
public function __construct()
69
69
{
70
- $dotenv = Dotenv::createImmutable(__DIR__ . '/../' );
70
+ $dotenv = Dotenv::createImmutable(__DIR__);
71
71
$dotenv->load();
72
72
$this->token = $_ENV['BOT_TOKEN'];
73
73
parent::__construct($this->token);
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Heartbeat extends \Ourted\Interfaces\Command
6
6
{
7
7
public function execute ($ json )
8
8
{
9
- // \Ourted\State::log('Execute: HEARTBEAT');
9
+ \Ourted \State::log ('Execute: HEARTBEAT ' );
10
10
11
11
$ json = json_encode ([
12
12
'op ' => 1 ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Heartbeatack extends \Ourted\Interfaces\Command
6
6
{
7
7
public function execute ($ json )
8
8
{
9
- // \Ourted\State::log('Execute: HEARTBEAT-ACK');
9
+ \Ourted \State::log ('Execute: HEARTBEAT-ACK ' );
10
10
// Nothing to see...
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments