Skip to content
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

onEvent functions #4

Closed
MorganEPatch opened this issue Feb 20, 2015 · 1 comment
Closed

onEvent functions #4

MorganEPatch opened this issue Feb 20, 2015 · 1 comment

Comments

@MorganEPatch
Copy link

PircBot v. 1.5, the documentation to which is linked as documentation for this 1.7 port, has a large number of on*() functions on the PircBot class, such as onJoin, onPart, onNickChange, onTopic, etc., which aren't supported by this version. Of particular usefulness are onJoin and onPart, which can allow the bot to automatically add a user to a system when they join the channel or to introduce itself, to serialize a user's data when they leave (users can easily leave a channel without disconnecting from a server), etc. Also of use could be the onUnknown() function, which allows the user to define their own behavior when an event occurs on the server that the PircBot framework is unable to handle.

@davidlazar
Copy link
Owner

These functions are part of the PircBot abstract class. See onJoin for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants