Skip to content

Commit 2029493

Browse files
committed
Update | 1.0.1 Beta
1 parent 2b93a9d commit 2029493

File tree

5 files changed

+32
-23
lines changed

5 files changed

+32
-23
lines changed

.idea/workspace.xml

+24-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once __DIR__ . '\\..\\vendor\\autoload.php';
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Dotenv\Dotenv;
66
use Ourted\Bot;
@@ -12,7 +12,7 @@ class Ourted extends Bot
1212

1313
public function __construct()
1414
{
15-
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
15+
$dotenv = Dotenv::createImmutable(__DIR__);
1616
$dotenv->load();
1717
$this->token = $_ENV['BOT_TOKEN'];
1818
parent::__construct($this->token);

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Without Event Listener
1515
```php
1616
<?php
1717

18-
require_once __DIR__ . '\\vendor\\autoload.php';
18+
require_once __DIR__ . '/vendor/autoload.php';
1919

2020
use Dotenv\Dotenv;
2121
use Ourted\Bot;
@@ -27,7 +27,7 @@ class Ourted extends Bot
2727

2828
public function __construct()
2929
{
30-
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
30+
$dotenv = Dotenv::createImmutable(__DIR__);
3131
$dotenv->load();
3232
$this->token = $_ENV['BOT_TOKEN'];
3333
parent::__construct($this->token);
@@ -55,7 +55,7 @@ With Event Listener
5555
```php
5656
<?php
5757

58-
require_once __DIR__ . '\\vendor\\autoload.php';
58+
require_once __DIR__ . '/vendor/autoload.php';
5959

6060
use Dotenv\Dotenv;
6161
use Ourted\Bot;
@@ -67,7 +67,7 @@ class Ourted extends Bot
6767

6868
public function __construct()
6969
{
70-
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
70+
$dotenv = Dotenv::createImmutable(__DIR__);
7171
$dotenv->load();
7272
$this->token = $_ENV['BOT_TOKEN'];
7373
parent::__construct($this->token);

src/Command/Heartbeat.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Heartbeat extends \Ourted\Interfaces\Command
66
{
77
public function execute($json)
88
{
9-
//\Ourted\State::log('Execute: HEARTBEAT');
9+
\Ourted\State::log('Execute: HEARTBEAT');
1010

1111
$json = json_encode([
1212
'op' => 1,

src/Command/Heartbeatack.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Heartbeatack extends \Ourted\Interfaces\Command
66
{
77
public function execute($json)
88
{
9-
//\Ourted\State::log('Execute: HEARTBEAT-ACK');
9+
\Ourted\State::log('Execute: HEARTBEAT-ACK');
1010
// Nothing to see...
1111
}
1212
}

0 commit comments

Comments
 (0)