|
7 | 7 | from typing import TYPE_CHECKING |
8 | 8 |
|
9 | 9 | import twitchio |
10 | | -from aiocache.backends.memcached import MemcachedCache |
11 | | -from aiocache.backends.memory import SimpleMemoryCache |
12 | | -from aiocache.backends.redis import RedisCache |
13 | 10 | from twitchio.ext import commands |
14 | 11 | from twitchio.ext.commands import CommandErrorPayload |
15 | 12 |
|
|
22 | 19 | LifecycleHandler, |
23 | 20 | TokensHandler, |
24 | 21 | ) |
25 | | -from bot.utils import Cache, Config, MemCache, TimeTools |
| 22 | +from bot.utils import Cache, Config, MemCache # , TimeTools |
26 | 23 |
|
27 | 24 | if TYPE_CHECKING: |
28 | 25 | # from bot.api import api, api_start |
| 26 | + from aiocache.backends.memcached import MemcachedCache |
| 27 | + from aiocache.backends.memory import SimpleMemoryCache |
| 28 | + from aiocache.backends.redis import RedisCache |
| 29 | + |
29 | 30 | from bot.ext import Context |
30 | 31 |
|
31 | 32 |
|
@@ -53,7 +54,7 @@ def __init__(self, configs: Config, case_insensitive: bool, log: Logger, adapter |
53 | 54 | self.CommandHandler: CommandHandler = CommandHandler(bot=self) |
54 | 55 | self.LifecycleHandler: LifecycleHandler = LifecycleHandler(bot=self) |
55 | 56 | self.ContextHandler: ContextHandler = ContextHandler(bot=self) |
56 | | - self.TimeTools: TimeTools = TimeTools() |
| 57 | + # self.TimeTools: TimeTools = TimeTools() |
57 | 58 |
|
58 | 59 | async def add_token(self, token: str, refresh: str) -> twitchio.authentication.ValidateTokenPayload: |
59 | 60 | return await self.TokensHandler.add_token(token, refresh) |
|
0 commit comments