From 16cef19077233c6bf2f8c6bb08568e1f722b7250 Mon Sep 17 00:00:00 2001 From: esefxdz Date: Mon, 20 Jul 2026 22:22:39 +0300 Subject: [PATCH] trigger removal: no longer needed --- cogs/timestamp_friends.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/cogs/timestamp_friends.py b/cogs/timestamp_friends.py index 8660f2d..5ea05ab 100644 --- a/cogs/timestamp_friends.py +++ b/cogs/timestamp_friends.py @@ -12,27 +12,12 @@ import logging import os import re from datetime import timezone, timedelta - import discord from discord.ext import commands - from .tz_data import find_offset, has_ampm, normalize_bare_hours, parse_bare_hours - log = logging.getLogger(__name__) - -# --------------------------------------------------------------------------- -# optional dependency -# --------------------------------------------------------------------------- -try: - import dateparser - from dateparser.search import search_dates as _search_dates - HAS_DATEPARSER = True -except ImportError: - HAS_DATEPARSER = False - log.warning( - "timestamp_friends: dateparser not installed; " - "install with `pip install dateparser`" - ) +import dateparser +from dateparser.search import search_dates as _search_dates # --------------------------------------------------------------------------- # trigger phrase