<?php $lang = array('en' => array('help' => 'Usage: %CMD% [<server>]. List the channels where %BOT% is online.', 'none' => 'I am not connected to any channel on %s.', 'out' => 'I am in %d channels on %s: %s.')); $plugin = Dog::getPlugin(); $argv = $plugin->argv(); $argc = count($argv); if ($argc === 0) { $server = Dog::getServer(); } elseif ($argc !== 1) { return $plugin->showHelp(); } else { if (false === ($server = Dog::getServerByArg($argv[0]))) { return Dog::rply('err_server'); } } if (!$server->isConnected()) { return Dog::rply('err_connection'); } $out = ''; $channels = $server->getChannels(); foreach ($channels as $channel) { $channel instanceof Lamb_Channel; $out .= sprintf(', %s(%d)', $channel->getName(), count($channel->getUsers())); } if ($out === '') { return $plugin->rply('none', array($server->displayName())); } $plugin->rply('out', array(count($channels), $server->displayName(), substr($out, 2)));
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Print memory usage statistics.', 'usage' => 'Currently there are %s in use. Max memory peak was %s.'), 'de' => array('help' => 'Nutze: %CMD%. Gibt Statistiken über die Speichernutzung aus.', 'usage' => 'Zur Zeit werden %s Speicher verwendet. Die maximale Auslastung betrug %s.')); Dog::getPlugin()->rply('usage', array(GWF_Upload::humanFilesize(memory_get_usage(true), '1000'), GWF_Upload::humanFilesize(memory_get_peak_usage(true), '1000')));
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Find out what gizmore means.', 'gizmore' => 'Gizmore means guess more and is a parody on the gremlins movie. Also a gremlin means unknown hardware issues, appropiate for my master.')); return Dog::getPlugin()->rply('gizmore');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Print info on Pharao momo.', 'momo' => 'momo is the Pharao of math at wechall. He likes pyramids very much.')); Dog::getPlugin()->rply('momo');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Find out who arabian!6 is.', 'arabian' => 'Arabian is the retired slap master of all networks.')); return Dog::getPlugin()->rply('arabian');
<?php Dog::getPlugin()->rply('His name is blitzed, he is the ritz!');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. I don´t know what´s up dog.', 'up' => 'What´s up dog?')); Dog::getPlugin()->rply('up');
<?php $lang = array('en' => array('help' => 'svn co https://trac.gwf3.gizmore.org/GWF3/ gwf3')); Dog::getPlugin()->showHelp();
<?php $lang = array('en' => array('help' => 'How do you ask the right question? Type %CMD% to find out.', 'link' => 'How to ask in IRC: http://www.sabi.co.uk/Notes/linuxHelpAsk.html')); Dog::getPlugin()->rply('link');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Print info on DJ sacon.', 'sacon' => 'Wenn man mal den Jürgen würgen möchte!')); Dog::getPlugin()->rply('sacon');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Print database connection statistics.', 'stats' => 'Database stats since last startup: Total DB time is %.02fs with %d queries within %s (%.02f qps). Queries opened/closed: %s/%s.'), 'de' => array('help' => 'Nutze: %CMD%. Zeige DATENBANKZUGRIFFSSTATISTIKEN!!!!!', 'stats' => 'Datenbank Statistiken seit dem letzten Startvorgang: Verbrachte Zeit in der DB ist %.02fs mit %d Abfragen in %s (%.02f QpS). Abfragen Offen/Beendet: %s/%s.')); $db = gdo_db(); $c = $db->getQueryCount(); $ct = $db->getQueryTime(); $t = microtime(true) - Dog_Init::getStartupTime(); $dt = GWF_Time::humanDuration($t); $tps = $c / $t; $qo = $db->getQueriesOpened(); $qc = $db->getQueriesClosed(); Dog::getPlugin()->rply('stats', array($ct, $c, $dt, $tps, $qo, $qc));
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Shows some credits.', 'crds' => 'Thanks go out to all beta testers... Keep reporting stuff!')); Dog::getPlugin()->rply('crds');
<?php $lang = array('en' => array('help' => 'Usage: %CMD%. Print info on DJ sacon.', 'ollie' => 'Die DJ Grüßmaschine aus dem süden Süddeutschlands.')); Dog::getPlugin()->rply('ollie');