-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New features for IRC Bot #21
Conversation
Some refactoring, and fixed bug with no logFile Added listeners Added seperate config file
Better error handling for joke Striping slashes in fetch method.
Moved stripslahes to command
Get user's IP method. No Location notification in Weather.
Nice to see new features. Looking over it everything looks good. Just need to clean up the README a bit, but I can do that. I'll let pogosheep take a look then pull. |
Thanks for the nice work. But you motivate us to work on the project again. |
Great, |
New features for IRC Bot thanks to matejvelikonja.
Lets just fix this up as we go. README is the first thing that needs fixing. |
@matejvelikonja Can you explain your 'listeners'? Also need to make the install, config, and run section a little more explanatory. |
Listeners are similar to commands, but with one mayor difference. Commands are issued by users, while listeners listen to channel events, like JOIN, PRIVMSG, ... For now only one listener exists. The JoinListener, which listens for JOIN event and when this event occurs, the user is greeted with a message. For now the message is hardcoded in class, but it should be put into config file to make it configurable. |
Thanks. That all makes sense. What other listeners can we implement? The in the documentation it looks a little empty with only one listener implemented. |
Just a couple of ideas from top of my head: |
Yeah I think they swear word listener would be a good place to start. We haven't implemented OP yet, so kick/ban would need that. We could though easily add a warning listener, and that could give us on more listener. Should logging really be implemented as a listener? Makes logical sense that it would fall under a listener, but then again that listener its going to have much more code to actually log, and do we really want to stuff that into a listener file? |
The swear word listener would be the simplest thing to do. Maybe we should just open an improvment issue on github and someone who will have time could do it. About logging, I agree with you. It would be better to implement it on lower (bot) level. So that it logs everything that happens in a channel. For further development I think that logging is almost a must. Because with that, we'll take bot to another level. |
Another thing. The current JOIN listener should be better name. Maybe GreetOnJoinListener. |
Yeah it conflicts with the join command. I think just Greet will do. On Wed, Jan 16, 2013 at 5:52 AM, Matej Velikonja
Shawn Wilkinson |
I've added couple of changes to the existing code. All changes are written in README.md file. Would you like to merge this to projects together?