refactor(utils/cooldown): ignore owners

This commit is contained in:
Ryan 2025-02-12 19:02:50 -05:00
parent 8ee7693b91
commit 8d76a107c5
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -5,10 +5,14 @@ from logging import error, info
import disnake
import commands
from constants import OWNERS
from state import command_cooldowns, message_responses
def cooldown(message, cooldown_time: int):
if message.author.id in OWNERS:
return
possible_commands = commands.match(message.content)
if not possible_commands or len(possible_commands) > 1:
return