Giter Club home page Giter Club logo

Comments (4)

epochblue avatar epochblue commented on June 12, 2024 1

@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.

epochblue avatar epochblue commented on June 12, 2024

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.

 avatar commented on June 12, 2024

This problem was solved after you updated the Composer setup.

Thanks :)

from philip.

freeman3s avatar freeman3s commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.