feat: set status to idle appropriately

This commit is contained in:
2025-01-05 19:23:50 -05:00
parent d7ab46a20e
commit 3848deb887
5 changed files with 41 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import importlib
import inspect
import io
import textwrap
import time
import traceback
import disnake_paginator
@@ -12,7 +13,7 @@ import commands
import constants
import core
import utils
from state import client, command_locks, executed_messages
from state import client, command_locks, last_used
async def on_message(message, edited=False):
@@ -26,6 +27,9 @@ async def on_message(message, edited=False):
if not matched:
return
global last_used
last_used = time.time()
if len(matched) > 1:
await utils.reply(
message,