Last active
February 9, 2016 22:11
-
-
Save sitedyno/c06e51070e16eafd6d98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-ping" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-bigstock" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-url-shorten" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-audioscrobbler" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-google" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-weather" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-puppet" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-dice" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-pingpong" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/svpernova09/phergie-irc-plugin-react-tableflip" | |
} | |
], | |
"require": { | |
"chrismou/phergie-irc-plugin-react-audioscrobbler": "dev-phergie-version2", | |
"chrismou/phergie-irc-plugin-react-dice": "dev-version-2-updates", | |
"chrismou/phergie-irc-plugin-react-google": "dev-phergie-version2", | |
"chrismou/phergie-irc-plugin-react-pingpong": "dev-phergie-version2", | |
"chrismou/phergie-irc-plugin-react-weather": "dev-version2-updates", | |
"phergie/phergie-irc-plugin-react-tableflip": "dev-version-2-updates", | |
"laravel/envoy": "^1.0", | |
"phergie/phergie-irc-bot-react": "^2", | |
"phergie/phergie-irc-plugin-dns": "^4", | |
"phergie/phergie-irc-plugin-http": "^4", | |
"phergie/phergie-irc-plugin-react-autojoin": "^2", | |
"phergie/phergie-irc-plugin-react-bofh": "^3", | |
"phergie/phergie-irc-plugin-react-commandhelp": "^2", | |
"phergie/phergie-irc-plugin-react-daddy": "^2", | |
"phergie/phergie-irc-plugin-react-eventfilter": "^2", | |
"phergie/phergie-irc-plugin-react-joinpart": "^2", | |
"phergie/phergie-irc-plugin-react-magic-eight-ball": "^2", | |
"phergie/phergie-irc-plugin-react-nickserv": "^2", | |
"phergie/phergie-irc-plugin-react-quit": "^2", | |
"phergie/phergie-irc-plugin-react-url": "^3", | |
"phergie/phergie-irc-plugin-react-usermode": "~2", | |
"phergie/phergie-irc-plugin-react-youtube": "^2", | |
"pschwisow/phergie-irc-plugin-react-puppet": "dev-phergie-version2", | |
"pschwisow/phergie-irc-plugin-react-url-shorten": "dev-version2-updates", | |
"renegade334/phergie-irc-plugin-react-ping": "dev-version2-updates", | |
"shutterstock/phergie-irc-plugin-react-bigstock": "dev-phergie-version-2", | |
"vlucas/phpdotenv": "^2.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat config.php | |
<?php | |
//use Chrismou\Phergie\Plugin\Audioscrobbler\Plugin as AudioscrobblerPlugin; | |
use Chrismou\Phergie\Plugin\Dice\Plugin as DicePlugin; | |
use Chrismou\Phergie\Plugin\Google\Plugin as GooglePlugin; | |
use Chrismou\Phergie\Plugin\PingPong\Plugin as PingPongPlugin; | |
use Chrismou\Phergie\Plugin\Weather\Plugin as WeatherPlugin; | |
use Phergie\Irc\Connection; | |
use Phergie\Irc\Plugin\React\AutoJoin\Plugin as AutoJoinPlugin; | |
use Phergie\Irc\Plugin\React\BOFH\Plugin as BofhPlugin; | |
use Phergie\Irc\Plugin\React\Command\Plugin as CommandPlugin; | |
use Phergie\Irc\Plugin\React\CommandHelp\Plugin as CommandHelpPlugin; | |
use Phergie\Irc\Plugin\React\Daddy\Plugin as DaddyPlugin; | |
use Phergie\Irc\Plugin\React\EventFilter\Plugin as EventFilterPlugin; | |
use Phergie\Irc\Plugin\React\EventFilter\UserFilter; | |
use Phergie\Irc\Plugin\React\EventFilter\UserModeFilter; | |
use Phergie\Irc\Plugin\React\JoinPart\Plugin as JoinPartPlugin; | |
use Phergie\Irc\Plugin\React\MagicEightBall\Plugin as MagicEightBallPlugin; | |
use Phergie\Irc\Plugin\React\NickServ\Plugin as NickServPlugin; | |
use Phergie\Irc\Plugin\React\Quit\Plugin as QuitPlugin; | |
use Phergie\Irc\Plugin\React\TableFlip\Plugin as TableFlipPlugin; | |
use Phergie\Irc\Plugin\React\Url\DefaultUrlHandler; | |
use Phergie\Irc\Plugin\React\Url\Mime as MimeHandlers; | |
use Phergie\Irc\Plugin\React\Url\Plugin as UrlPlugin; | |
use Phergie\Irc\Plugin\React\UserMode\Plugin as UserModePlugin; | |
use Phergie\Irc\Plugin\React\YouTube\Plugin as YouTubePlugin; | |
use Phergie\Plugin\Dns\Plugin as DnsPlugin; | |
use Phergie\Plugin\Http\Plugin as HttpPlugin; | |
use PSchwisow\Phergie\Plugin\UrlShorten\Plugin as UrlShortenPlugin; | |
use PSchwisow\Phergie\Plugin\Puppet\Plugin as PuppetPlugin; | |
use Renegade334\Phergie\Plugin\React\Ping\Plugin as PingPlugin; | |
//use Shutterstock\Phergie\Plugin\Bigstock\Plugin as BigstockPlugin; | |
$dotenv = new Dotenv\Dotenv(__DIR__); | |
$dotenv->load(); | |
//$audioscrobbler = new AudioscrobblerPlugin([ | |
//'lastfm' => getenv('LASTFM_API_KEY'), | |
//]); | |
//$bigstock = new BigstockPlugin([ | |
//// REQUIRED: The API account ID associated with your Bigstock account | |
//'accountId' => getenv('BIGSTOCK_ACCOUNT_ID'), | |
//// OPTIONAL: The formatter used for output (default value is shown) | |
//'formatter' => new \Shutterstock\Phergie\Plugin\Bigstock\DefaultFormatter( | |
//'%title% - %url_short% < %large_thumb% >' | |
//), | |
//// OPTIONAL: How long to wait for URL shortener before skipping it (default value is shown) | |
//'shortenTimeout' => 15, | |
//]); | |
$bofh = new BofhPlugin([]); | |
$dice = new DicePlugin; | |
$google = new GooglePlugin; | |
$joinpart = new JoinPartPlugin; | |
$puppet = new PuppetPlugin; | |
$table_flip = new TableFlipPlugin; | |
$usermode = new UserModePlugin; | |
$weather = new WeatherPlugin([ | |
'config' => [ | |
'appId' => getenv('WEATHER_APP_ID'), | |
], | |
]); | |
$quit = new QuitPlugin; | |
return [ | |
'plugins' => [ | |
//$audioscrobbler, | |
new AutoJoinPlugin([ | |
'channels' => [ | |
getenv('CHANNEL1') | |
], | |
'wait-for-nickserv' => true, | |
]), | |
//$bigstock, | |
$bofh, | |
new CommandHelpPlugin([ | |
'plugins' => [ | |
//$audioscrobbler, | |
//$bigstock, | |
$bofh, | |
$dice, | |
$google, | |
$joinpart, | |
$puppet, | |
$table_flip, | |
$weather, | |
$quit, | |
], | |
]), | |
new CommandPlugin([ | |
'pattern' => getenv('COMMANDPATTERN'), | |
]), | |
new DaddyPlugin, | |
$dice, | |
new DnsPlugin, | |
new EventFilterPlugin([ | |
'plugins' => [ | |
$joinpart, | |
$puppet, | |
$quit, | |
], | |
'filter' => new UserFilter([ | |
getenv('OPERATOR1'), | |
getenv('OPERATOR2'), | |
]), # CHANGE ME | |
]), | |
//new EventFilterPlugin([ | |
//'plugins' => [ | |
//$joinpart, | |
//], | |
//'filter' => new UserModeFilter( | |
//// Pre-configured instance of \Phergie\Irc\Plugin\React\UserMode\Plugin | |
//$usermode, | |
//// List of letters corresponding to user modes for which to allow events | |
//array('o', 'v') | |
//) | |
//]), | |
$google, | |
new HttpPlugin, | |
$joinpart, | |
new MagicEightBallPlugin, | |
new NickServPlugin([ | |
'password' => getenv('NICKSERV_PASSWORD'), | |
'loggedinpattern' => '/Password accepted/', | |
]), | |
new PingPlugin, | |
new PingPongPlugin([ | |
'reply' => true, | |
]), | |
$table_flip, | |
$usermode, | |
new UrlPlugin([ | |
'handler' => new DefaultUrlHandler( | |
'[%url-short%] %composed-title%', | |
[ | |
new MimeHandlers\Html, | |
new MimeHandlers\Image, | |
] | |
), | |
]), | |
new UrlShortenPlugin, | |
$weather, | |
new YouTubePlugin([ | |
'key' => getenv('YOUTUBE_KEY'), | |
'publishedFormat' => 'Y-m-d H:i', | |
'durationFormat' => '%hh%im%ss', | |
]), | |
], | |
'connections' => [ | |
new Connection([ | |
'serverHostname' => getenv('NET1SERVERHOSTNAME'), | |
'serverPort' => 6697, | |
'username' => getenv('NET1USERNAME'), # CHANGE ME | |
'realname' => getenv('NET1REALNAME'), # CHANGE ME | |
'nickname' => getenv('NET1NICKNAME'), # CHANGE ME | |
'options' => [ | |
'transport' => 'ssl', | |
], | |
]), | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment