KoalaBotUK / KoalaBot

🐨 All in one Discord bot for student societies & communities
https://KoalaBot.uk
MIT License
11 stars 8 forks source link

fix: base cog api now works #398

Closed abluey closed 1 year ago

abluey commented 1 year ago

Summary

Closes #388

Incorporated Jack's code for making JSON posts work Removed package parameter requirement for loading and unloading cogs (this was requested a while ago).

Checklist



codecov[bot] commented 1 year ago

Codecov Report

Merging #398 (21aa650) into master (b7822ad) will decrease coverage by 0.03%. The diff coverage is 97.95%.

@@            Coverage Diff             @@
##           master     #398      +/-   ##
==========================================
- Coverage   86.77%   86.75%   -0.03%     
==========================================
  Files         111      111              
  Lines        8166     8161       -5     
==========================================
- Hits         7086     7080       -6     
- Misses       1080     1081       +1     
Flag Coverage Ξ”
unittests 86.75% <97.95%> (-0.03%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
koala/rest/api.py 85.45% <75.00%> (-1.09%) :arrow_down:
koala/cogs/base/api.py 98.43% <100.00%> (ΓΈ)
koala/cogs/base/cog.py 97.11% <100.00%> (ΓΈ)
koala/cogs/base/core.py 96.51% <100.00%> (ΓΈ)
tests/cogs/base/test_api.py 100.00% <100.00%> (ΓΈ)
tests/cogs/base/test_core.py 98.65% <100.00%> (ΓΈ)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.