Skip to content

Aegis' actions should not be blocked by message rate limit #73

Description

@Pythonic-Rainbow

https://github.com/TCLRainbow/DimBot/blob/441d2a8eab12b314a2726ef141be252e806f3ffe/mod/ikaros.py#L22

In theory, when a raid happens, DimBot will suffer from message rate limit. As all moderation actions within Ikaros requries ensure_target() to callback, this may make DimBot unable to mute/kick all offenders in time.

Proposal: Convert Attempting to lock's await statement into create_task(), then for Target locked/Cannot lock target as well as Muting/has been kicked etc. messages, chain them after the Attempt lock's task.

This should allow DimBot to only schedule the messages, act on offenders, then send the messages later.

Activity

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions