History
Allows to save the messages history.
Classes
- class irc_api.history.History(limit: int)
A custom queue to have access to the latest messages.
Attributes
- contentlist, private
The content of the History.
- limitint, private
The maximum number of messages that the History stored.
Methods
- add(elmnt)
Add a new element to the History’s instance. If the History is full, the oldest message is deleted.
Parameters
- elmnt
The element to add.
- get()
Returns the content of the History’s instance.