feat: set status to idle appropriately
This commit is contained in:
6
core.py
6
core.py
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user