| |
- builtins.Exception(builtins.BaseException)
-
- NotAuthenticatedError
- builtins.object
-
- IncrementalUIDGenerator
- ServiceBot
class IncrementalUIDGenerator(builtins.object) |
|
Incremental UID Generator module, adapted from InspIRCd source:
https://github.com/inspircd/inspircd/blob/f449c6b296ab/src/server.cpp#L85-L156 |
|
Methods defined here:
- __init__(self, sid)
- Initialize self. See help(type(self)) for accurate signature.
- increment(self, pos=None)
- Increments the UID generator to the next available UID.
- next_uid(self)
- Returns the next unused UID for the server.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class NotAuthenticatedError(builtins.Exception) |
|
Exception raised by checkAuthenticated() when a user fails authentication
requirements. |
|
- Method resolution order:
- NotAuthenticatedError
- builtins.Exception
- builtins.BaseException
- builtins.object
Data descriptors defined here:
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from builtins.Exception:
- __init__(self, /, *args, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __new__(*args, **kwargs) from builtins.type
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from builtins.BaseException:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __reduce__(...)
- helper for pickle
- __repr__(self, /)
- Return repr(self).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- __setstate__(...)
- __str__(self, /)
- Return str(self).
- with_traceback(...)
- Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.
Data descriptors inherited from builtins.BaseException:
- __cause__
- exception cause
- __context__
- exception context
- __dict__
- __suppress_context__
- __traceback__
- args
|
class ServiceBot(builtins.object) |
| |
Methods defined here:
- __init__(self, name, default_help=True, default_request=False, default_list=True, nick=None, ident=None, manipulatable=False)
- Initialize self. See help(type(self)) for accurate signature.
- add_cmd(self, func, name=None)
- Binds an IRC command function to the given command name.
- call_cmd(self, irc, source, text, called_by=None, notice=True)
- Calls a PyLink bot command. source is the caller's UID, and text is the
full, unparsed text of the message.
- help(self, irc, source, args)
- <command>
Gives help for <command>, if it is available.
- listcommands(self, irc, source, args)
- takes no arguments.
Returns a list of available commands this service has to offer.
- remove(self, irc, source, args)
- reply(self, irc, text)
- Replies to a message using the right service UID.
- request(self, irc, source, args)
- spawn(self, irc=None)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |