Comments (8)
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.
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.
Is there any event it triggers when you actually join the channel?
from philip.
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.
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.
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.
"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.
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)
- 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
- onJoin() not working as expected HOT 4
- 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.