discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

Feat dispatcher #71

Closed bast0006 closed 3 years ago

bast0006 commented 3 years ago

Add an event dispatcher for use with plugins and other inter-bot events.

codecov[bot] commented 3 years ago

Codecov Report

Merging #71 (d807791) into main (6f8708b) will increase coverage by 8.05%. The diff coverage is 91.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
+ Coverage   60.70%   68.75%   +8.05%     
==========================================
  Files          26       30       +4     
  Lines        1112     1498     +386     
  Branches      140      183      +43     
==========================================
+ Hits          675     1030     +355     
- Misses        414      437      +23     
- Partials       23       31       +8     
Impacted Files Coverage Δ
modmail/utils/cogs.py 88.00% <50.00%> (-12.00%) :arrow_down:
modmail/dispatcher.py 87.68% <87.68%> (ø)
modmail/utils/general.py 89.47% <89.47%> (ø)
tests/modmail/test_dispatcher.py 95.45% <95.45%> (ø)
modmail/bot.py 38.84% <100.00%> (+1.55%) :arrow_up:
tests/modmail/utils/test_general.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6f8708b...d807791. Read the comment docs.