aboutsummaryrefslogtreecommitdiff
path: root/src/EventManager.py
Commit message (Collapse)AuthorAgeFilesLines
* don't call hooks added during event call and don't call ones removedGravatar jesopo2020-02-151-1/+6
|
* another rework of event priorities. insert as >=, not as defaultGravatar jesopo2020-02-131-2/+2
|
* insert new hooks at the start of their priority, to prevent duplicates on reloadGravatar jesopo2020-02-091-1/+1
|
* store timestamp and current git commit when loading a moduleGravatar jesopo2020-02-031-0/+8
|
* Fix type errors detected by 'mypy --ignore-missing-imports src'.Gravatar Valentin Lorentz2019-10-301-2/+2
|
* move typing.Callable def so Event doesn't have to be in " "Gravatar jesopo2019-10-291-2/+2
|
* EventRoot._hook's `kwarg` should be a list of tuplesGravatar jesopo2019-09-161-1/+2
|
* pull `priority` out of `kwargs` in _hookGravatar jesopo2019-07-301-0/+4
|
* Revert "hook priority position should default to 0, not end"Gravatar jesopo2019-07-301-4/+5
| | | | This reverts commit ff0cc59507249da262535895129d9ec3258b56a5.
* Revert "we should be checking if the new hook has a higher priority"Gravatar jesopo2019-07-301-1/+1
| | | | This reverts commit b145e664e1c26322c916783b910050b7393fdb83.
* we should be checking if the new hook has a higher priorityGravatar jesopo2019-07-301-1/+1
|
* hook priority position should default to 0, not endGravatar jesopo2019-07-301-5/+4
|
* Remove debug printGravatar jesopo2019-07-281-1/+0
|
* 'name' -> 'key' (copypaste fail)Gravatar jesopo2019-07-281-2/+2
|
* Refactor hook kwargs to be stored as a list of tuples to support key duplicatesGravatar jesopo2019-07-281-8/+28
| | | | closes #108
* gotta str()-ify `kwargs` before logging itGravatar jesopo2019-07-151-2/+2
|
* src/EventManager.py: fix typo defualt -> defaultGravatar Mikaela Suomalainen2019-07-131-2/+2
|
* Re-add EventManager check to prevent _call() outside main threadGravatar jesopo2019-06-261-0/+3
|
* Refactor EventManager to only hold hooks on a root objectGravatar jesopo2019-06-261-253/+127
|
* Restrict EventManager calls to the main threadGravatar jesopo2019-06-221-0/+3
|
* Don't fail get_kwarg when self.kwarg[name] is falseyGravatar jesopo2019-06-161-2/+5
|
* check_purge() after removing a context as it could make a hook purgableGravatar jesopo2019-06-051-0/+1
|
* Give SentLine (and preproc.send events) a new event object, to track eventsGravatar jesopo2019-06-041-0/+3
| | | | related to a line after it is sent
* Switch back to events.name defaulting to None, use typing.cast to fix lintingGravatar jesopo2019-05-181-2/+3
| | | | error
* give EventCallbacks their event nameGravatar jesopo2019-05-181-4/+6
|
* Hold context in EventCallback objects, add name<->context translation inGravatar jesopo2019-05-101-2/+3
| | | | ModuleManager
* Support one-shot event hooks (src/EventManager.py)Gravatar jesopo2019-02-141-1/+6
|
* Add `make_event(..)` to EventHookContextGravatar jesopo2019-01-301-0/+4
|
* Make sure to call the specific hook we've decided is valid (commands.py)Gravatar jesopo2019-01-301-0/+2
|
* Add `returns` type hint in EventManager.py.callGravatar jesopo2018-12-061-1/+1
|
* fix incorrect retyping of "event_path" as "event, path" (i wasn't paying enoughGravatar jesopo2018-12-051-2/+2
| | | | attention)
* Add missing ")" from last commitGravatar jesopo2018-12-051-1/+1
|
* Don't do unnecessary work when someone tries to call a not-hooked-in-to eventGravatar jesopo2018-12-051-2/+9
|
* Clarify/fix type hints throughout EventManager.pyGravatar jesopo2018-12-021-7/+8
|
* Switch back to logging events as 2 messages as a lot of other logs can happenGravatar jesopo2018-11-261-2/+4
| | | | between the start and end of an event and grouping them together is very useful
* Log event timing in 1 message, not 2Gravatar jesopo2018-11-141-4/+2
|
* Fix/refactor issues brought up by type hint lintingGravatar jesopo2018-10-301-27/+39
|
* Add type/return hints throughout src/ and, in doing so, fix some cyclicalGravatar jesopo2018-10-301-98/+109
| | | | references.
* Only log exceptions when they're not unsafeGravatar jesopo2018-10-161-3/+4
|
* Move src/Utils.py in to src/utils/, splitting functionality out in to modules ofGravatar jesopo2018-10-031-2/+2
| | | | related functionality
* EventHook._call takes 3 argsGravatar jesopo2018-10-011-2/+2
|
* Add call_unsafe functions to EventManager.EventHook, to not swallow errors onGravatar jesopo2018-10-011-9/+24
| | | | specific function calls (e.g. preprocess.command)
* Add 'trace' logging level for src/Database.py and src/EventManager.py veryGravatar jesopo2018-10-011-2/+2
| | | | verbose debugging
* Switch to using docstring for usage, permission and require_modeGravatar jesopo2018-09-301-0/+7
|
* Add !reloadscripts to modules/scripts.pyGravatar jesopo2018-09-291-4/+23
|
* Give EventHook objects their full delimited event nameGravatar jesopo2018-09-291-1/+1
|
* Pass parent EventHook down to childrenGravatar jesopo2018-09-271-1/+1
|
* Don't give IRCBot instance to things that don't need it, use a better way ofGravatar jesopo2018-09-271-13/+11
| | | | doing default locations for config/database/log
* Create delimited|multiple|events from the correct EventHook when usingGravatar jesopo2018-09-261-1/+1
| | | | delimited.event.chains
* Also use docstrings to check if a command has help available, allow one-stringGravatar jesopo2018-09-261-12/+23
| | | | denotation of multiple event hooks