Skip to content

Commit

Permalink
feat: 删除 Plugin 类的 get() 方法
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 删除 Plugin 类的 get() 方法,请使用 self.bot.get() 代替
  • Loading branch information
st1020 committed May 19, 2023
1 parent 2866c8e commit 3ad522f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions alicebot/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ class Plugin(ABC, Generic[T_Event, T_State, T_Config]):
def __init__(self, event: T_Event):
self.event = event

if not hasattr(self, "priority"):
self.priority = 0
if not hasattr(self, "block"):
self.block = False

self.get = self.bot.get

self.__post_init__()

def __post_init__(self):
Expand Down

0 comments on commit 3ad522f

Please sign in to comment.