$help = ($arguments_array[0] == "-h") ? true : false;
$output = include("commands/$command.php");
}
}
This is good enaught, i can pass arguments to it and actually makes stuff easyer because it outomatically reads all data program has so example ip sniffing is easy (this is irc bot)
if someone is interested how this works on whole, i just pushed it to git https://gitlab.com/MrDarkHooD/irc-php-bot/
Обсуждают сегодня