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.
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
requriesensure_target()
to callback, this may make DimBot unable to mute/kick all offenders in time.Proposal: Convert
Attempting to lock
's await statement intocreate_task()
, then forTarget locked/Cannot lock target
as well asMuting/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.