just take any module e.g. that code below and place the script stuff in $output and rename $stats. If that's to complicate for you I suggest you find someone to do it for you. ^^
<?php
$stats = new stats($bot);
class stats extends BaseActiveModule
{
function __construct (&$bot)
{
parent::__construct(&$bot, get_class($this));
$this -> register_command("all", "stats", "MEMBER");
$this -> help['description'] = "Shows hidden stats List.";
$this -> help['command']['stats']="Shows hidden stats List.";
}
function command_handler($source, $msg, $type)
{
$this->error->reset();
$com = $this->parse_com($msg, array('com', 'sub', 'args'));
$command = $vars[0];
switch($com['com'])
{
case 'stats':
return($this -> stats($source, $type));
break;
default:
$this -> error -> set("Broken plugin, recieved unhandled command: $command");
return($this->error->message());
}
}
function stats ($source, $type )
{
$output='<place your script in here>';
$this -> bot -> send_output($source, $output, $type);
}
}
?>