-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add cogbase for default init func
- Loading branch information
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from typing import Generic, TypeVar | ||
|
||
from nextcord.ext.commands import Cog | ||
|
||
from .botbase import BotBase | ||
|
||
B = TypeVar("B", bound=BotBase) | ||
__all__: tuple[str, ...] = ("CogBase",) | ||
|
||
|
||
class CogBase(Cog, Generic[B]): | ||
def __init__(self, bot: B): | ||
self.bot = bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ooliver-botbase" | ||
version = "1.15.0" | ||
version = "1.16.0" | ||
description = "A personal nextcord bot base package for bots." | ||
authors = ["ooliver1 <[email protected]>"] | ||
license = "MIT" | ||
|