feat(profiles): Add profile base and users.
This commit is contained in:
@@ -27,6 +27,7 @@ if TYPE_CHECKING:
|
||||
from meta.CrocBot import CrocBot
|
||||
from core.cog import CoreCog
|
||||
from core.config import ConfigCog
|
||||
from twitch.cog import TwitchAuthCog
|
||||
from tracking.voice.cog import VoiceTrackerCog
|
||||
from tracking.text.cog import TextTrackerCog
|
||||
from modules.config.cog import GuildConfigCog
|
||||
@@ -49,6 +50,7 @@ if TYPE_CHECKING:
|
||||
from modules.topgg.cog import TopggCog
|
||||
from modules.user_config.cog import UserConfigCog
|
||||
from modules.video_channels.cog import VideoCog
|
||||
from modules.profiles.cog import ProfileCog
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -142,6 +144,10 @@ class LionBot(Bot):
|
||||
# To make the type checker happy about fetching cogs by name
|
||||
# TODO: Move this to stubs at some point
|
||||
|
||||
@overload
|
||||
def get_cog(self, name: Literal['ProfileCog']) -> 'ProfileCog':
|
||||
...
|
||||
|
||||
@overload
|
||||
def get_cog(self, name: Literal['CoreCog']) -> 'CoreCog':
|
||||
...
|
||||
@@ -154,6 +160,10 @@ class LionBot(Bot):
|
||||
def get_cog(self, name: Literal['VoiceTrackerCog']) -> 'VoiceTrackerCog':
|
||||
...
|
||||
|
||||
@overload
|
||||
def get_cog(self, name: Literal['TwitchAuthCog']) -> 'TwitchAuthCog':
|
||||
...
|
||||
|
||||
@overload
|
||||
def get_cog(self, name: Literal['TextTrackerCog']) -> 'TextTrackerCog':
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user