diff --git a/freeloadermode/_tagscript.py b/freeloadermode/_tagscript.py index bf8e01d..c7c1e4f 100644 --- a/freeloadermode/_tagscript.py +++ b/freeloadermode/_tagscript.py @@ -22,12 +22,11 @@ SOFTWARE. """ -from typing import Final, List, Dict, Union, final +from typing import Dict, Final, List, Union, final import discord -from redbot.core.utils.chat_formatting import humanize_number - import TagScriptEngine as tse +from redbot.core.utils.chat_formatting import humanize_number TAGSCRIPT_LIMIT: Final[int] = 10_000 diff --git a/freeloadermode/commands.py b/freeloadermode/commands.py index 16861c9..5285801 100644 --- a/freeloadermode/commands.py +++ b/freeloadermode/commands.py @@ -22,15 +22,15 @@ SOFTWARE. """ -from datetime import timedelta, timezone, datetime -from typing import Literal, Optional, Union, Dict, Any +from datetime import datetime, timedelta, timezone +from typing import Any, Dict, Literal, Optional, Union import discord from redbot.core import commands from redbot.core.utils.chat_formatting import box -from .converters import TimeConverter, BanLengthConverter, TagScriptConverter from .abc import CompositeMetaClass, MixinMeta +from .converters import BanLengthConverter, TagScriptConverter, TimeConverter from .utils import guild_roughly_chunked diff --git a/freeloadermode/core.py b/freeloadermode/core.py index 5aa797e..99f8287 100644 --- a/freeloadermode/core.py +++ b/freeloadermode/core.py @@ -23,28 +23,27 @@ """ import asyncio -import logging import contextlib +import logging from datetime import datetime, timedelta, timezone -from typing import Coroutine, Final, List, Dict, Union, Any, Optional, Literal +from typing import Any, Coroutine, Dict, Final, List, Literal, Optional, Union import discord +import TagScriptEngine as tse from discord.ext import tasks -from redbot.core.bot import Red from redbot.core import Config, commands, modlog +from redbot.core.bot import Red from redbot.core.utils import AsyncIter from redbot.core.utils.chat_formatting import humanize_list - -import TagScriptEngine as tse from redbot.core.utils.mod import get_audit_reason -from .abc import CompositeMetaClass from ._tagscript import ( TAGSCRIPT_LIMIT, TagCharacterLimitReached, freeloader_message, process_tagscript, ) +from .abc import CompositeMetaClass from .commands import CommandsMixin log: logging.Logger = logging.getLogger("red.seina.freeloadermode")