trigger removal: no longer needed
This commit is contained in:
1 parent
bbee62f2d9
commit
16cef19077
1 file changed
+2
-17
@@ -12,27 +12,12 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from datetime import timezone, timedelta
|
from datetime import timezone, timedelta
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from .tz_data import find_offset, has_ampm, normalize_bare_hours, parse_bare_hours
|
from .tz_data import find_offset, has_ampm, normalize_bare_hours, parse_bare_hours
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
import dateparser
|
||||||
# ---------------------------------------------------------------------------
|
from dateparser.search import search_dates as _search_dates
|
||||||
# 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`"
|
|
||||||
)
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# trigger phrase
|
# trigger phrase
|
||||||
|
|||||||
Reference in new issue
Block a user