1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-03 04:29:54 +03:00

Fix durations blocking command handler thread

Add "This punishment will expire in" text to ban/mute notifications
This commit is contained in:
l1ttleO 2022-02-12 23:54:45 +05:00
parent 04facc3de2
commit e41a459f6f
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
6 changed files with 51 additions and 28 deletions

View file

@ -39,11 +39,6 @@ public static class Utils {
return $"<#{id}>";
}
public static async Task StartDelayed(Task toRun, TimeSpan delay) {
await Task.Delay(delay);
toRun.Start();
}
private static ulong ParseMention(string mention) {
return Convert.ToUInt64(Regex.Replace(mention, "[^0-9]", ""));
}