Giter Club home page Giter Club logo

Comments (8)

epochblue avatar epochblue commented on June 12, 2024

The onJoin method does what you want, but it won't respond to you joining a room. It will only respond to other people joining a room you're in already.

(at least - that's what it should do, if it doesn't, please file an issue and I'll fix it)

from philip.

epochblue avatar epochblue commented on June 12, 2024

Since I haven't heard anything more from this, I'm going to close it. If there's a problem here, please open a new issue.

from philip.

jrmyio avatar jrmyio commented on June 12, 2024

Is there any event it triggers when you actually join the channel?

from philip.

epochblue avatar epochblue commented on June 12, 2024

Events aren't thrown when the bot joins a room. Join events are thrown when someone else joins a channel that the bot currently occupies, however. Is this not working?

from philip.

jrmyio avatar jrmyio commented on June 12, 2024

It is working. But isnt it a little strange we can't send anything to the channel when we join it.

Someone else first has to join/or say something before we can do anything?

from philip.

epochblue avatar epochblue commented on June 12, 2024

I apologize for being obtuse, but I'm not sure I understand what you're asking for. As long as the bot is in a channel, it can send messages when other people join the room or talk in the room. Are you asking for the bot to join a room and as soon as it successfully joins a room to say something?

The bot can join any room you want it to, whether there's someone in the room or not, but it won't do much while it's in there unless there are other people (or bots?) in the room to post messages to the channel for the bot to respond to.

from philip.

jrmyio avatar jrmyio commented on June 12, 2024

"Are you asking for the bot to join a room and as soon as it successfully joins a room to say something?"

Yes. This comes in handy when making bots that act on themselves.

from philip.

epochblue avatar epochblue commented on June 12, 2024

OK, well, I think I know how something like this might be implemented. I'll look into adding it.
Thanks!

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.