Skip to content

Migrate from blocking "requests" to async "aiohttp"#43

Draft
Cyclic3 wants to merge 2 commits intomainfrom
unblocking
Draft

Migrate from blocking "requests" to async "aiohttp"#43
Cyclic3 wants to merge 2 commits intomainfrom
unblocking

Conversation

@Cyclic3
Copy link

@Cyclic3 Cyclic3 commented Oct 11, 2025

TL;DR: Made it so that hard maths problems do not disable ban appeals

I've moved all the blocking requests usages with aiohttp, which means that web requests will not freeze the entire bot while it waits for a response.

To ensure that this doesn't happen again, I've removed requests from requirements.txt

@Cyclic3 Cyclic3 marked this pull request as draft October 11, 2025 22:47
@Cyclic3
Copy link
Author

Cyclic3 commented Oct 11, 2025

Just a heads up, I have not yet got admin, so I've had no chance to test this :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant