-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·33 lines (25 loc) · 909 Bytes
/
run
File metadata and controls
executable file
·33 lines (25 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env php
<?php
require_once __DIR__ . '/bootstrap/bootstrap.php';
// Create new instance of the core
$core = new \Spires\Core\Core(realpath(__DIR__));
// Register and configure the IRC client
$core->register(\Spires\Irc\ServiceProvider::class, [
'connection.channel' => '##sometestingchannel',
'connection.server' => 'irc.freenode.com',
'connection.port' => 6667,
'user.nickname' => 'spires',
'user.username' => 'spiresbot',
'user.realname' => 'Spires ALPHA',
]);
// Register the base providers for handling the basic message types
$core->registerBaseServiceProviders();
// Register service providers
$core->register(\YourNamespace\Spires\PluginName\ServiceProvider::class);
// Boot the core
$core->boot();
// Connect and run the client
$client = $core->make(\Spires\Irc\Client::class);
$client->logCore($core);
$client->connect();
$client->run();