Comments (4)
@freeman3s Thank you for letting me know there's still an issue here. Unfortunately, this repo is effectively unmaintained since I don't write PHP for my day job anymore and I'm no longer an employee with the company that used this project. If I find the time to dig back into this project, then I'll absolutely take a look at this, but I would be remiss to promise a fix on any reasonable timeline.
(On a separate note: if you know anyone who'd like to take over this project and bring it up to more modern PHP standards, that would be ideal)
I'm sorry you're having this problem, and I really do appreciate you reaching out to let me know there is a problem.
from philip.
Are you trying to use echo
to spit out into the channel or is that just an example? If you're trying to run echo, then the bot wouldn't do anything expect maybe spit that into the console. You'd need to create an IRC response and attach it to the event, like this:
$bot->onJoin(function($event) {
$event->addResponse(Response::msg($event->getRequest()->getSource(), 'hello!'));
});
If it's just an example, then there may be a bug with onJoin that I can look into...
from philip.
This problem was solved after you updated the Composer setup.
Thanks :)
from philip.
I have the same problem and I can't solve it. Here is my code:
$bot = new Philip($config);
$bot->onJoin(function($event) {
$event->addResponse(Response::msg($event->getRequest()->getSource(),
'onJoin' . $event->getRequest()->getSendingUser()
));
});
$bot->onPart(function($event) {
$event->addResponse(Response::msg($event->getRequest()->getSource(),
'onPart' . $event->getRequest()->getSendingUser()
));
});
$bot->run();
from philip.
Related Issues (16)
- Does the onJoin method work? HOT 8
- Private class members prevent customization HOT 1
- Allow for password-protected IRC channels
- Allow custom commands to provide help messages
- Use DI Container HOT 2
- Switch event code to use ReactPHP HOT 2
- Add ability for bot to send messages after joining a channel
- Class 'Philip' not found HOT 5
- Better security model for admin users HOT 1
- onPing() not found HOT 5
- Not directly related to Philip, but I may find help here
- Joins and NickServ sent too early, causing it to not work
- - HOT 1
- How to show right menu slide. HOT 1
- Your requirements could not be resolved to an installable set of packages.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from philip.