epochblue / philip Goto Github PK
View Code? Open in Web Editor NEWA Slim-inspired IRC bot framework.
License: MIT License
A Slim-inspired IRC bot framework.
License: MIT License
Edit: sorry, my mistake
I was able to get onChannel() working perfectly, but for some reason onJoin() doesn't work. The callback function isn't being called when there's a JOIN event on the channel my bot is on. Could it be a problem with the listener?
Here's my code:
$bot->onJoin(function($event) {
echo "hello";
});
Thanks
I'm trying to make my Philip bot, when commanded, send a message to the channel, wait 45 seconds, send another message to the channel, wait another 15 seconds, then send a third and final message. Here's the link to the stackoverflow question: http://stackoverflow.com/questions/21874515/using-sleep-delays-all-output
Thanks!
Currently help messages are only supported for plugins, but any custom command should be capable of providing a help message as well.
Currently Philip authenticates an admin user simply by username on IRC.
While this works on some IRC servers (with very strict user registration), on most IRC servers this is a potential security threat. For example: IRCNet does not have any nickname registration what so ever. So anyone taking your nick, becomes an Philip admin
Maybe add an build in feature to authenticate with Philip using a username / password? Or using the 'nickname!username@hostname' syntax?
Using a DI container inside the Philip engine could be a good way to share resources between plugins (such as configuration or persistent storage). I'm considering composing Pimple and passing all getters through Pimple.
The event loop in Philip is a bit naive; would be nice to try to switch it to something like ReactPHP and let Philip focus on the IRC bits, rather than the event bits.
Some IRC channels require passwords to be passed during the join procedure.
Default on running the application it shows the menu slide button ON tap on Menu button it moves left to right menu slide and shows Table view with Front view controller, Map View Controller, Enter Presentation Mode, Resign Presentation Mode.
Same stuff I want in opposite side, which is from right to left side menu.
Most of the non-public members in the library's classes are private, which makes it difficult to extend for customization. These members can safely be converted to protected, without altering behavior.
Maybe have it respond to the RPL_TOPIC/RPL_NOTOPIC server command responses?
In the readme, onPing() is listed as an example server event, but onPing() is not in the code.
Hi, can anyone please shed some light and provide an example for the onJoin command?
$bot = new Philip($config);
$bot->onJoin(function($e){
var_dump($e);
});
$bot->run();
I tried to see what would get dumped on the screen when I join the channel but I got nothing. Thank you!
BTW What I wanted to do is welcome specific users when they join the channel.
Hi, I followed your README and I'm getting this error: "PHP Fatal error: Class 'Philip' not found in /home/steve/Documents/fillep/bot.php on line 22"
Problem 1
- Conclusion: don't install epochblue/philip v1.0.0
- Can only install one of: monolog/monolog[1.7.0, 1.23.0].
- Can only install one of: monolog/monolog[1.7.0, 1.23.0].
- Can only install one of: monolog/monolog[1.7.0, 1.23.0].
- epochblue/philip v1.0.1 requires monolog/monolog 1.7.* -> satisfiable by monolog/monolog[1.7.0].
- Installation request for epochblue/philip ^1.0 -> satisfiable by epochblue/philip[v1.0.0, v1.0.1].
- Installation request for monolog/monolog (locked at 1.23.0) -> satisfiable by monolog/monolog[1.23.0].
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.