diff --git a/payphone/cogs/mods/cog.py b/payphone/cogs/mods/cog.py index 67edf74..9ccb5c4 100644 --- a/payphone/cogs/mods/cog.py +++ b/payphone/cogs/mods/cog.py @@ -329,7 +329,7 @@ class Mods(base.Cog): @commands.command() @commands.is_owner() async def stats( - self, ctx: commands.Context, iterations: int = 5, wait: int = 5 + self, ctx: commands.Context, iterations: int = 4, wait: int = 5 ) -> None: """ Shows all Payphone's stats. @@ -362,6 +362,16 @@ class Mods(base.Cog): lambda: models.Call.filter(ended_at=None).count(), ), ("Bans", lambda: models.Ban.all().count()), + ( + "Ongoing Bans", + lambda: models.Ban.filter( + expressions.Q( + expires_at=None, + expires_at__gt=datetime.now(timezone.utc), + join_type="OR", + ) + ).count(), + ), ("Reports", lambda: models.Report.all().count()), ( "On-review Reports",